question

jacobnarayan avatar image
jacobnarayan asked jacobnarayan commented

402 Payment Required - error card_declined - System Error, please retry

Hi all,

In the sandbox environment when paying for an order through the ecommerce service api, I am now getting a 402 status code. Previously this code was working and I've made no changes.

Here's the full error message:

status: 402,
  data: {
    message: '402 Payment Required',
    error: {
      code: 'card_declined',
      message: 'System Error, please retry',
      charge: 'V4D021YEE1EYP',
      declineCode: 'issuer_declined'
    }

This is how I am calling the endpoint:

var payStatus = await sdk.postOrdersIdPay({
        ecomind: 'ecom',
        customer: payData.customerId
      }, {
        orderId: payData.orderId,
        'x-forwarded-for': payData.ip
 })


I've verified that card token was properly created and added to the customers profile before this api call takes place. I am getting emails that my card was added to my profile yet when I try to use it as above I get the error. Any suggestions?


Payments
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 jacobnarayan commented

Hey this issue has been fixed today please try again

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.

jacobnarayan avatar image jacobnarayan commented ·
confirmed it was working thanks
0 Likes 0 ·
dgshanee avatar image
dgshanee answered

I'm getting the same error. Any update? I even tried making a new account lol

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 answered

I'm getting the same same error creating a charge with a successful card tokenization:

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

Using the https://scl-sandbox.dev.clover.com/v1/charges endpoint

Very frustrating since it was working fine on Friday

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