#uziel_66011
1 messages · Page 1 of 1 (latest)
I need to send a tokenized payment to shopify in order to complete a checkout https://shopify.dev/docs/apps/channels/checkout-api/complete-stripe
I used to do this with card element but now when using payment element I cannot use stripe.createToken anymore
or how can I create a token using this API https://stripe.com/docs/api/tokens/create_card when I'm using payment element?
You don't use Tokens with Payment Element and you don't really create PaymentMethods without completing a payment.
The only real way to do this would be to use a SetupIntent
thanks, I already looked into setup intent but can't see how can I create a token from the setup intent object
Ah sorry, you can't. You would create a PaymentMethod. I assume with Shopify they can use a PaymentMethod just fine as well
But you would need to check with Shopify on that
Overall, this is a Shopify integration so you should really be talking to them about the proper way to do this.
shopify is not the only one who uses tokenized payment methods, how can I create a token from a payment method in stripe? an object like tok_xxx
You can't do this with Payment Element. Tokens are our legacy objects
You can only create them via Card Element
Payment Element works with PaymentMethods
so payment methods is the equivalent to what tokens used to be?
Yes
thank you