question

chandra-m avatar image
chandra-m asked bryanvargas answered

402 Payment Required

Error Generating 402 Payment Required for American Express, but Successful for Visa, Discover, MasterCard

Hello Clover Community,

I'm encountering an issue while trying to generate a chargesRequest using the Clover API, specifically when attempting to generate a chargesRequest for AMEX(American Express).

I'm receiving a '402' response with the message '402 Payment Required.' Interestingly, this issue does not occur when using Visa, Discover, or MC(MasterCard).

I have provided the request payloads and responses for both unsuccessful AMEX(American Express) and successful (Visa/Discover/MasterCard) cases.

I'm seeking insights, advice, or potential solutions to resolve this issue and achieve successful payment for American Express transactions.

Any assistance or recommendations on debugging and resolving this issue would be greatly appreciated. Thank you for your time and expertise!

ChargesRequestApi Endpoint: https://scl-sandbox.dev.clover.com/v1/charges

For AMEX:

=========

Response

=========

{message: "402 Payment Required",…}

error: {code: "card_declined", message: "CVV could not be verified", charge: "KS1DF4QDJCB6M",…}

charge: "KS1DF4QDJCB6M"

code: "card_declined"

declineCode: "issuer_declined"

message: "CVV could not be verified"

message: "402 Payment Required"


Request Payload

===============

{ecomind: "ecom", metadata: {existingDebtIndicator: false}, amount: "45", currency: "USD",…}

amount: "45"

currency: "USD"

ecomind: "ecom"

metadata: {existingDebtIndicator: false}

existingDebtIndicator: false

source: "clv_1TSTSkXPsbmgFu6iyD3E574E"


For Visa ,Discover,MC (successfull):

Response

=========

{

"id" : "QQZ563DJV8C8G",

"amount" : 45,

"payment_method_details" : "card",

"amount_refunded" : 0,

"currency" : "USD",

"created" : 1697200129357,

"captured" : true,

"ref_num" : "328600501790",

"auth_code" : "OK9112",

"outcome" : {

"network_status" : "approved_by_network",

"type" : "authorized"

},

"paid" : true,

"status" : "succeeded",

"source" : {

"id" : "clv_1TSTSHMb94DAyMQ8gQG5NCfH",

"brand" : "VISA",

"exp_month" : "06",

"exp_year" : "2025",

"first6" : "424242",

"last4" : "4242"

},

"ecomind" : "ecom"

}

Request Payload

===============

{ecomind: "ecom", metadata: {existingDebtIndicator: false}, amount: "45", currency: "USD",…}

amount: "45"

currency: "USD"

ecomind: "ecom"

metadata: {existingDebtIndicator: false}

source: "clv_1TSTSHMb94DAyMQ8gQG5NCfH"

API Token
10 |2000

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

bryanvargas avatar image
bryanvargas answered

Hey, did you reach out to devrel for them to take a look at your test merchant to see if everything is ok?

10 |2000

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

bryanvargas avatar image
bryanvargas answered

Looks like DevRel has been trying to get information from you and you haven't sent them the details for them to assist. Please respond accordingly with the merchant UUID, your App UUID so they can review the logs of the root cause.

10 |2000

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

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