#uziel_66011

1 messages · Page 1 of 1 (latest)

late vortexBOT
broken turret
#

Hello

#

What's your goal exactly here?

#

Like why do you want to do this?

gloomy epoch
#

I used to do this with card element but now when using payment element I cannot use stripe.createToken anymore

broken turret
#

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

gloomy epoch
#

thanks, I already looked into setup intent but can't see how can I create a token from the setup intent object

broken turret
#

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.

gloomy epoch
#

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

broken turret
#

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

gloomy epoch
#

so payment methods is the equivalent to what tokens used to be?

broken turret
#

Yes

gloomy epoch
#

thank you