Hey guys, hoping someone has a definitive answer on this and where I should start.
We have a couple of stand-alone landing pages for individual products that are completely detached from our Shopify Plus account. These are “single page checkout” sites; the user enters their credit card information right from the main page, there is no “cart” or checkout. The primary use for these are single-product campaigns and for our call center employees to place orders from customer who called in by phone.
Currently we handle the transaction with a Stripe account: The user completes the form and posts to a script on our server. Our server charges the card through Stripe’s REST API, then pushes the order into Shopify as a prepaid order through the REST API. This is all working fine, but I’d like to eliminate Stripe and just have Shopify charge the card so everything stays in one platform.
Is this possible? My goal is to create a single script that uses only the REST API, no client-side code, no directing the user to a checkout page, etc.
- Create an unpaid order in Shopify and get the Order ID.
- Add the customer’s card information and charge the card for the order total. (transaction?)
- Update the payment status to paid if approved, or delete the whole order if declined.