The Storefront API has the checkoutCompleteWithTokenizedPaymentV2 mutation, which you can see utilized here. With that you could generate a Stripe Token to use, I’m not sure Stripe Customer IDs work though
Thanks for the reply. One follow-up question I have -
So, you are saying that using Storefront API we cannot leverage Stripe Customer Id to complete a checkout? Which means that we need the user to punch-in the credit card details every time a checkout is initiated if using Storefront API? Is that right?
So you can use the Stripe customer ID when creating the Stripe token, which you will use as input into the mutation. Referring to this documentation on Stripe’s end: https://stripe.com/docs/api/tokens/create_card
You’ll see that both card and customer are optional, where in your case you would make use of customer (which is the customer ID), where you would then receive a Stripe token in the response. Note that this requires Stripe Connect to be set up on your Stripe account.
Just wanted to follow up, as you said “requires Stripe Connect to be set up on your Stripe account.”
But that means the customer needs to be a connect user as well right?
So people buying items would all have to be connect accounts?