Self Hosted Custom checkout

CodeClouds351
Shopify Partner
2 0 0
Hello Shopify,
 
One of my clients wants to build a self-hosted checkout page (instead of the Shopify built-in checkout) this includes Shipping, discount, Tax calculation, gift card handling and payment processing. I went through the official Shopify help documents and I found these following two possible way to do this:-
 
1. Using plain REST API:
- Using Orders, Products, Discounts, Customers, Country (for TAX) and ShippingZone - we can create a self-hosted checkout, but this process is a bit complicated compared to Checkout API.
 
2. Using the Sales channel and checkout API:
- With this approach, the checkout API is handling everything for me (including the payment processing) but I have a query - Is this something we would need to create a PUBLIC Sales Channel app for this? If so, what effects would the sales channel app be public have?
 
My questing is which method should we use to create our client-specific self-hosted checkout? I hope I cloud to be more specific. Any reply would be appreciated.
Replies 2 (2)

PaulNewton
Shopify Partner
6275 573 1319

@CodeClouds351 wrote:
 
2. Using the Sales channel and checkout API:
- With this approach, the checkout API is handling everything for me (including the payment processing) but I have a query - Is this something we would need to create a PUBLIC Sales Channel app for this? If so, what effects would the sales channel app be public have?

https://help.shopify.com/en/api/guides/sales-channel-sdk/overview#requirements

Sales channel is if YOUR marketplace|platform lets OTHER merchants sell things outside of THEIR stores

( examples https://apps.shopify.com/collections/sales-channels, facebook,pinterest,instagram,ebay,etc)

 

Confusing I know as "Checkout API" immediately gets your hopes up for a custom checkout experience loosely "managed" by shopify but Sales channel SDK and Checkout API only work together.

I guess a large problem here is all the interchangeable terms and specific terms and restrictions not really being laid out in an approachable way and lack of concrete demos to understand the different systems

 

There is the https://help.shopify.com/en/api/storefront-api/tools/js-buy-sdk but that is to create checkouts not to self host the entire process.

 

There's also storefront ap https://help.shopify.com/en/api/storefront-api/guides/checkout-guide

Or being a payment gateway https://help.shopify.com/en/api/guides/payment-gateway/hosted-payment-sdk with restrictions

 

 

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


CodeClouds351
Shopify Partner
2 0 0

Thanks for the reply, Paul. So as per the "Usage guidelines" of the sales channel, we need to publish the app so that anyone can sell their product on the platform. Therefore, for individual store/client, we shall use the "Rest API" approach, please correct me if I wrong.