question

jcharrington avatar image
jcharrington asked jcharrington commented

When using Developer Pay, how can we void payments when either CVV or AVS fails?

We're using the Developer Pay API and would like to void credit card transactions where either the "avsResult" or "cvvResult" fails according to the tests we've defined. For example, we'd like to void a payment when the "avsResult" comes back as "NEITHER_MATCH", such as this response:

{
    "authCode": "******",
    "avsResult": "NEITHER_MATCH",
    "cvvResult": "SUCCESS",
    "paymentId": "*************",
    "result": "APPROVED",
    "token": "*************"
}

Is there any way to either (a) void these "APPROVED" transactions or (b) cause these transactions to return to be "DECLINED"?
PaymentsDeveloper Pay API
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

zgreathouse avatar image
zgreathouse Deactivated answered jcharrington commented
There are no Void or Refund endpoints within the Developer Pay API. Programmatically implementing Voids and Refunds at this time can only be done on device (Clover Device) through a native app using the PaymentConnector SDK.
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.

jcharrington avatar image jcharrington commented ·

Got it. Thanks, @zgreathouse. Appreciate the quick response.

1 Like 1 ·

Welcome to the
Clover Developer Community