#joseamica
1 messages · Page 1 of 1 (latest)
Hello
Looks like you are using Payment Element and you want to save card for future use?
Correct?
Correct
Ive seen some tutorials but on checkout, not in the payment element
you can see the flow this demo website does, so you can see what im talking about:
https://demo.sundayapp.xyz/venues/943d2145-f227-476d-a94e-1ac09c8807b8/bills/5d2ae49f-587d-3fd1-8f47-cf4d5e929233/splits/786aa159-ad5b-4bbd-87a0-db02b9f0608d/payment-intents/new
You basically want to follow: https://stripe.com/docs/payments/save-during-payment
Essentially you just need to include setup_future_usage when you create your PaymentIntent and pass a Customer ID as well
Thats some issue, since all my users are anonymous
I can store the id on a cookie
Can you enter the website i provide you and see if its possible do it this way? Or they manage their own payment system?
I'm not sure what you mean by any of that, sorry.
It doesn't matter if your users are anonymous
You still can create a Customer object to represent each one
And I don't know what you mean by "Can you enter the website i provide you and see if its possible do it this way?" -- I don't know what you want me to look for really.
They have their own design to save the credit cards info, I want to do it like that
Looks like they use Split Card Element, not Payment Element
But the concept is the same
You use setup_future_usage and a Customer ID
Yes you could do what they are doing, you would use our legacy Split Card Elements like cardNumber element (https://stripe.com/docs/js/elements_object/create_element?type=cardNumber) instead of Payment Element
Ok, ill let you know if i have some further questions, thanks