#RGRTHAT
1 messages ยท Page 1 of 1 (latest)
๐ Happy to help
Howdy ๐
Could you share the problem you're facing?
My current payment flow is this:
1. User press "pay"
2. User is redirected to setup payments.
- SetupIntent, so he can use card for future payment.
3. User is redirected to checkout, and can just click "pay" and use the card he just setup
When user already have a payment method, and press "pay" he will automatically be redirected to checkout, and not setupIntent
However i need some way for user to change between payment methods
say a user have registrered 3 payment methods, is it possible to render on the screen 3 cards that is blurred out? and u only see the 4 last digits of the card?
and then the user can choose between the 3 cards, which card user want to be the default he pays with
Payment Element doesn't render the payment methods saved on the customer. You can fetch the customer's payment method list with https://stripe.com/docs/api/payment_methods/customer_list and display the details accordingly
Is it possible to save a card when the user does its first payment?
current i use stripe.setupIntents to setup future payments
Yes! You can refer to the save payment during payment doc here: https://stripe.com/docs/payments/save-during-payment
You can save payment method with Payment Intent directly without additional Setup Intent step
does the payment element have a checkbox where user can press "accept", so they know the payment method is actually saved?
no, it doesn't have a check box to save a payment method
@crude rune i forgot to tell u that i use stripe connect
Is it possible to save card for future usage during first ever paymentIntent from a customer with connect?
Yes, this can be done with the same doc: https://stripe.com/docs/payments/save-during-payment