#alex_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1361461247400476683
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there
hello
event id of a recent payment method collection: evt_1RDuXPBb49XQ2DGya693zTAl
That event payload contains a PaymentMethod object; I see the fingerprint there, too
yes, however I didn't see it in my client side code, which is why I was asking here.
I would expect this step to have the fingerprint via paymentMethod.card
const { paymentMethod, error: createPaymentMethodError } =
await stripe?.createPaymentMethod({
elements,
});
and for that fingerprint to be the same whether or not the payment method is of type card or card_present
Got it, okay. A couple of things:
- Using createPaymentMethod is an older integration flow. We now recommend using ConfirmationTokens instead: https://docs.stripe.com/payments/payment-element/migration-ct
- Retrieving PaymentMethod details can only be done server side. This can't be done with a Publishable Key
ok perfect that clarifies then why it wasn't there, I will add the step server side and consult that doc to assess the lift for updating our integration
The fingerprint should be the same as long as the PaymentMethods exist in the same account
ok
Does this also apply to Setup Intents?
"Instead of calling stripe.createPaymentMethod, call stripe.createConfirmationToken to create a ConfirmationToken object. Pass this ConfirmationToken to the server to confirm the PaymentIntent."
Yep!
ok cool, yeah I see this section now about setup future usage:
https://docs.stripe.com/payments/payment-element/migration-ct#conditional-options
I realize it's good to stay up to date, but it sounds like this confirm token is there to help with shipping information. Is there anything else I should be aware of with regards updating? Is there a deprecation date for createPaymentMethod?