I am currently trying to replace a custom paypal express implementation with Shopify.
We are selling Download products, so no shipping info and so on required, also only 1 product per sale, no cart.
What I am trying to achieve:
1. User goes to our Website, klicks "Buy Now"
2. User goes directly to Paypal
3. User returns to the Website (now the website has the information if the checkout was successful)
So far i tried to do this with the Storefront API but i cant seem to find a way to "bypass" the shopify checkout page (webUrl), next i tried to to the same thing with a custom app (which isnt allowed to use the checkout apis), next i converted the private custom app to a "public" custom app and converted it into a sales channel (because it seems this is the way to go?) but now i still cant add my products as line items since they are an "Unprocessable Entity" wich i guess means they are not published to the sales channel. sadly i can't event see the sales channel in the backend, wich is (i think) because its not listed yet?
please help me :/
Solved! Go to the solution
This is an accepted solution.
The Storefront API is designed to complete the entire journey. You should utilize the webUrl with PayPal as your payment gateway. This will bring the customer from Buy Now --> Checkout --> Paypal Express --> Thank you page.
A sales channel is built with the concept of multiple merchants in mind, not for a single storefront. This is what the Storefront API is for!
Thank you very much!
One question tho, since it does not seem to be possible to use a paypal sandbox account to test this, one more questions just to be sure.
When i enable only paypal as gateway, the checkout will skip the checkout page and redirect straight to paypal ? i dont want the user to enter an email / shipping address anywhere (everything is stored in paypal, so this would not make sense)
When you redirect to the webUrl the first option the customer will see is "Express checkout" *or* they can enter their details, at the end of the details page they would be redirected to Paypal. Here is the flow (the same for the Shopify Online Store)
Or on the payment page:
You can look at rebuilding the redirect that happens when you are on the checkout. The typical flow is hit the checkout --> click paypal express. If needed, you could consider rebuilding that redirect URL from a "cart" level to avoid another step.
That idea would need to be looked into by yourself or dev team. It would be an unsupported workaround and I'm not able to go into details on the specifics - the Storefront API by design redirects to the web checkout (which includes PayPal Express as the checkout option). This should not lead to conversion drop off, as our checkout is trusted by customers.
Hi @vix, that was not a helpful answer.
@Blockbase simply asked if you could direct him to developer docs regarding the following statement that you made:
If needed, you could consider rebuilding that redirect URL from a "cart" level to avoid another step.
If rebuilding the redirect URL from the cart level is actually a thing, would you kindly share the relevant section in the documentation?