#Parth R. Jangid (Pseudo Bugs)
1 messages · Page 1 of 1 (latest)
Do you mean you would like to have a subscription? Or just simply saving payment method only and initiating a payment when required?
So both subscription and the saving of card is independent. If the user opts for some monthly plan then subscription but if the user would like to save his card for faster checkout then saving of card. So both of them are independent of each other.
Currently, while I am creating the payment Intent I also have access to the customer ID.
I am using STPPaymentCardTextField for card input. Once I create a paymentMethod on stripe, attach it to the customer and the payment method Id is in my database, how do we use that id to repopulate the card component?
Do you have a reference to any YouTube video part of any series in Stripe Developers?
👋 stepping in here
STPPaymentCardTextFiled is okay-ish but any reason you don't use the PaymentSheet? It will also handle previously inputed card, if you intialize it with a Customer which has PaymentMethod saved and attached
Just because I have been provided with some custom View to be implemented so I have PaymentSheet.
So after finish the 1st payment, you did have the PaymentMethod Id, correct? Then it's all of backend logic (not iOS) that you can set the PaymentMethod Id to the customer invoice_settings.default_payment_method and create + confirm next PaymentIntent, server-side
So once I have attached the customer and the PaymentMethod Id then, if I want to display saved cards on the front-end I will need ephemeral key?