Hello. We're trying to get set up to complete checkouts via the Storefront API per this documentation (https://shopify.dev/custom-storefronts/checkout#stripe) using the checkoutCompleteWithTokenizedPaymentV3 endpoint with the ultimate goal being to control the entire checkout flow on our site rather than having to redirect the user to the Shopify web checkout.
Based on the docs, it seems we need to provide Shopify with our Stripe platform account ID, then subsequently obtain our "shopify_payments_account_id" from Shopify as part of this process in order to properly tokenize a payment. However, the docs aren't clear on exactly how to go about this:
When your app creates a new checkout for a store with Shopify Payments enabled, Shopify creates a Stripe account for the merchant as part of the Connect integration, and returns the shopify_payments_account_id. You can then get a credit card token from Stripe to complete the payment.
To get access, provide Shopify with your Stripe platform account ID. You can query for this ID using the Stripe API.
Up to this point we have implemented all API requests necessary to create a checkout, add line items, shipping, etc. and have even sent a tokenized payment to Shopify via the checkoutCompleteWithTokenizedPaymentV3 endpoint. Unfortunately the payment results in an abandoned checkout with error "Failed to find requested vault card", which I assume is due to missing links between our Stripe and Shopify accounts.
In searching these support forums I have seen a variety of similar questions asked, with an equal variety of answers/solutions, though the newest ones are from mid 2020 and may no longer be accurate. Any assistance with how to go about completing this Stripe integration is greatly appreciated. Thanks!
I am sorry for not being helpful but I am in a similar situation.
I would like to make a custom checkout process with Next.js using the storefront API.
It would be really nice if someone from Shopify can
Also, do you know if you can accept other payment methods using checkoutCompleteWithTokenizedPaymentV3. like Alipay, SEPA Debit, IDEAL etc.?
Were you able to resolve your issue?
Hi @IvayloK ,
After some in-depth discussion with our Shopify reps, we were unfortunately not able to gain any traction on with this capability. Custom checkouts are simply not allowed/available to private apps, despite having access to all of the APIs necessary to create a custom checkout. The only viable solution for a truly custom checkout is to create a marketplace app, which comes with its own set of challenges and was simply not a fit for our use case.
I think it may be possible to run payments through a third party like Stripe, and then do a "free" checkout via the Storefront API, but this is not something I've explored in depth as, again, such a solution wouldn't quite work for our use case. In the end we have had to find creative ways to customize the Shopify Web Checkout to fit our needs, which, again, presents its own set of challenges, but we're managing.
Best of luck to you and I hope you find a workable solution.
Thanks a lot for the information.
I was also exploring the option with third party payment and marking it as free but this is clearly stated in the API terms/rules on the top not to do that. After all, that way we would be subverting Shopify payments and that would cut into the pockets so I don't want to the risk with my client shops potentially getting shut down.
I am going in the same direction as you with redirecting to their checkout page and finishing the process there but I am running into hopefully a final issue. The user is logged in on my website/store with a customerAccessToken but according to Shopify, this is not a proper "login" whatever that means 🙂 and when they go on the checkout page they are not logged in.
Were you able to solve this for your clients?
We have 2 different platforms that run through the same Shopify instance checkout:
I know that was a brief answer, but hopefully that helps a bit.
Connect your PayPal account to allow your customers to checkout using the PayPal gateway a...By Ollie Jul 28, 2022