#himesh-reactnative

1 messages · Page 1 of 1 (latest)

severe shale
#

it should be there as an option as long as you're using an ephemeral key with a Customer object in the integration.

paper oracle
#

^^ well he knows more than me in this xD, for me i use php so i saved the token that i got from stripe, using that token i can get the card id and more info and the token can still be charged multiple times

scarlet hill
severe shale
#

can you post the ID pi_xxxx of that PaymentIntent ?

scarlet hill
#

Screenshot_2022-09-07_at_2.55.15_PM.png

But how come we can not modify UI which we use to open using the presentPaymentSheet() method

i need to add a checkbox there

scarlet hill
severe shale
#

ah it's because you pass setup_future_usage:on_session when you create the PaymentIntent in your backend. So it will always save the card, since you're explicitly asking for that, so no point having a checkbox since you don't want the customer to be able to turn it off

#

if you remove that then the customer gets the checkbox and the option to save or not

scarlet hill
#

or you mean i should remove the setup_future_usage param totally ?

scarlet hill
#

okay let me just try that right now and update you here as quick as i can

scarlet hill
#

saved my life man Safe 🙂