#brian-reuse-card_present
1 messages ยท Page 1 of 1 (latest)
Hello ๐
How can I help?
I'm trying to figure out why this eror comes through occasionaly on a new payment intent
I have a suspicion but I'm not sure if it is correct
we allow customers to "save cards" by storing the payment method token
Are you storing collected cards and trying to use them later on?
Do you save the cards without charging them or do you save them at the same time as the payment?
for US customers we save them at the same time as a charge - i.e. if it is a terminal check out we use the generated_card
for non-terminal checkouts we use the created payment method
note that this seems to only happen to a small subset of saved cards
can you share an example request ID where you're seeing this?
I suspect you have a bug where the payment intent tries to use the base payment method (instead of using generated_card ) for a subsequent off-session payment
Sure here's one
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
the payment method passed in there was created when you confirmed this payment intent
https://dashboard.stripe.com/logs/req_FUy68Mo7YmZdMn
its's a card_present payment method
If I recall correctly, generated_card should be a card type payment method
In that link generated_card is null
we use card_present on terminal check outs
So typically on a card_present terminal check out I look at the value of "generated_card" if they've chosen to save the card for future card NOT present purchases
if they used wallets like apple pay or google pay, generated_card could be null
We wouldn't have saved the card though if it is was null, since we would not get the generated_card payment method ID
wallets don't support saving cards when accepting the payment
Yeah if generated_card is null we're not going to save it
Based on the request link you posted is that where you indicate the payment method ID would have been saved from?
OK yeah I see the pm ID is the same
yup
pm_1OMfmmDbVO0r1ghH7a6ahlC7
so looks like it is being saved
OK that woudl explain it then - if for some reason we were using the payment method ID that was NOT in generated_card
I know that's not going to work on a card present checkout
OK that gives me somewhere to dig in
๐
I appreciate your help
NP! ๐ good luck
yep thanks - hope you have a good one
reuse-card_present