question

jdusa avatar image
jdusa asked bryanvargas answered

402 Payment Required Error (issuer_declined)

On Friday (11/03) I was successfuly creating charges in the sandbox environment using tokenized success test credit cards:

  curl --request POST \
  --url https://token-sandbox.dev.clover.com/v1/tokens \
  --header 'accept: application/json' \
  --header 'apikey: {myapikey}' \
  --header 'content-type: application/json' \
  --data '{"card": {"brand": "VISA","number": "5204245250003294","exp_month": "12","exp_year": "2025","cvv": "123","last4": "3294","first6": "5204245", "country": "US", "name": "Joe Tester", "address_line1": "16 Test Road", "address_city": "New York", "address_state": "New York", "address_zip": "12572"}}'


Then creating the charge:

curl --request POST \
     --url https://scl-sandbox.dev.clover.com/v1/charges \
     --header 'accept: application/json' \
     --header 'authorization: Bearer {myapikey}' \
     --header 'content-type: application/json' \
     --header 'x-forwarded-for: 104.23.567.3' \
     --data '{"ecomind": "ecom","amount": 1800,"currency": "USD","capture": true,"description": "Membership","source": "clv_1TSTSEbvSviL6xxxxx","receipt_email": "joe@test.com"}'
The charge request has been returning the following since Saturday (11/04) morning:

{"message":"402 Payment Required","error":{"code":"card_declined","message":"System Error, please retry","charge":"XHF7JBEYX34WC","declineCode":"issuer_declined"}


I would think that I could not tokenize a bad credit card, and since nothing has changed on my end, I can only assume that the sandbox is experiencing a system glitch.

This is becoming very frustrating ....

REST APIe-commerce apiAPI 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.

parquet76 avatar image
parquet76 answered jdusa edited

Have you tried using different card numbers? https://docs.clover.com/docs/test-card-numbers

3 comments
10 |2000

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

jdusa avatar image jdusa commented ·

Yes ... I tried them all.
This seems to be an issue that is widespread since there are multiple questions in this forum that reference the same problem.

We are all getting the following JSON reponse:

{"message":"System Error, please retry"}


Quick question: Do the moderators on this platform actually work for Clover or am I just wasting a monolithic amount of time on this worthless forum?

0 Likes 0 ·
parquet76 avatar image parquet76 jdusa commented ·
Nope, someone from Clover will have to look at this. Good luck.
0 Likes 0 ·
jdusa avatar image jdusa parquet76 commented ·
Thanks mate.
0 Likes 0 ·
bryanvargas avatar image
bryanvargas answered

This issue is now resolved, please try the payment again

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