Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
I followed the guideline here `https://shopify.dev/api/admin-rest/2021-10/resources/payment#[post]https://elb.deposit.shopifycs.com... enabled my store's test payment mode
POST "https://elb.deposit.shopifycs.com"
Header:
Body:
{
"credit_card": {
"number": "4242424242424242",
"first_name": "Bogus",
"last_name": "Gateway",
"month": "02",
"year": "26",
"verification_value": "191"
}
}
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<center>
<h1>400 Bad Request</h1>
</center>
<hr>
<center>nginx</center>
</body>
</html>
Solved! Go to the solution
This is an accepted solution.
Figured it out by using the following
curl -d '{"credit_card":{"number":"1","first_name":"John","last_name":"Smith","month": "5","year": "25","verification_value":"123"}}' -X POST "https://elb.deposit.shopifycs.com/sessions" -H "Content-Type: application/json"
This is an accepted solution.
Figured it out by using the following
curl -d '{"credit_card":{"number":"1","first_name":"John","last_name":"Smith","month": "5","year": "25","verification_value":"123"}}' -X POST "https://elb.deposit.shopifycs.com/sessions" -H "Content-Type: application/json"