#brian-reuse-card_present

1 messages ยท Page 1 of 1 (latest)

glossy harborBOT
potent raptor
#

Hello ๐Ÿ‘‹
How can I help?

ionic vault
#

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

potent raptor
#

Are you storing collected cards and trying to use them later on?

ionic vault
#

Yes

#

Are there instances where it does not work?

#

maybe on debit cards?

potent raptor
#

Do you save the cards without charging them or do you save them at the same time as the payment?

ionic vault
#

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

potent raptor
#

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

ionic vault
#

Sure here's one

potent raptor
ionic vault
#

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

potent raptor
#

if they used wallets like apple pay or google pay, generated_card could be null

ionic vault
#

We wouldn't have saved the card though if it is was null, since we would not get the generated_card payment method ID

potent raptor
#

wallets don't support saving cards when accepting the payment

ionic vault
#

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

potent raptor
#

yup

ionic vault
#

pm_1OMfmmDbVO0r1ghH7a6ahlC7

potent raptor
#

so looks like it is being saved

ionic vault
#

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

potent raptor
#

๐Ÿ‘

ionic vault
#

I appreciate your help

potent raptor
#

NP! ๐Ÿ™‚ good luck

ionic vault
#

yep thanks - hope you have a good one

glossy harborBOT
#

reuse-card_present