Storefront API complete checkout with tokenized Stripe payment

dsolano
New Member
2 0 0

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!

0 Likes