Payment gateway invalid when using Checkout API to checkout on Italian merchant with US credit card

chengdu
Tourist
9 0 1

Screen Shot 2021-04-12 at 4.11.33 PM.png

When manually doing checkout on the website, on its payment section, after clicking “Order and Pay”, we will be redirected to Credit Card to complete purchase. 

However it looks like this doesn't work out when using Checkout API. We are doing

https://shopify.dev/tutorials/complete-a-sales-channel-payment-with-checkout-api#send-credit-card-in...

 

By posting to /admin/checkouts/(token)/payments.json we have response 422 with error 

{"errors":{"payment_gateway":[{"code":"invalid","message":"is invalid","options":{}}],"checkout":{"payment_gateway":[{"code":"invalid","message":"is invalid","options":{}}]}}}

 

Any suggestions? Is using stripe one of the solutions?

0 Likes