question

arm77 avatar image
arm77 asked arm77 edited

Voiding PreAuthtransaction failed : using Payment connector

Request :

VoidPaymentRequest{json='{"paymentId":"YW9JZ9JXQKYXP","orderId":"F84D5WHD6SBFJ","voidReason":"USER_CANCEL"}', bundle=null, changeLog=Bundle[{orderId=null, voidReason=null, paymentId=null}]}


Response :

VoidPaymentResponse{json='{"success":false,"result":"FAIL","reason":null,"message":"Void was null","paymentId":null}', bundle=null, changeLog=Bundle[{success=null, reason=null, result=null, paymentId=null, message=null}]}

Clover Mini
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered arm77 commented

It is difficult to help you without a lot more context/details. What environment are you in? What APIs/SDKs are you using? Provide some context around when/how you are voiding in relation to the origin payment. Where how was the original payment taken?

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

arm77 avatar image arm77 commented ·

I am testing in sandbox environment, voiding for open auth transaction

com.clover.sdk.v3.connector

VoidPaymentRequest voidPaymentRequest=new VoidPaymentRequest();
voidPaymentRequest.setPaymentId(getIntent().getStringExtra(
"id"));
voidPaymentRequest.setOrderId(authorization.getOrderId()); voidPaymentRequest.setVoidReason(VoidReason.USER_CANCEL.name());

customPaymentConnector.performVoidTransactionOperation(voidPaymentRequest);
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community