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?