#Ayush9200

1 messages · Page 1 of 1 (latest)

outer remnantBOT
calm solstice
wide mason
#

Thanks for the help.

#

I am using payment intent for one time payments and saving its payment method details for future usage. So if customer wants to subscribe I can just use their existing payment method for subscription as well, but I have a scenario for first time customer where they want to subscribe but I don't have any payment method. What should I do in that case? Please suggest.

calm solstice
#

Hi, there are a couple of options. Typing out more...

#

The first option being, when the first payment succeeds on the subscription, you can pass the payment_settings to save the default payment method on that subscription: https://tripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method. Then, this payment method is used for as the default payment on this subscription.

Alternatively, you can collect the payment method details and set that default payment method on the customer object: https://stripe.com/docs/api/customers/create#create_customer-invoice_settings-default_payment_method

wide mason
#

Going through it. Thanks

#

I am going with your second suggestion. But I don't know how to collection payment method of user on UI, Usually I have to initiate payment intent and return Client Secret to UI which will render Payment element, In this case I cannot use payment intent. So how would you suggest to take payment details from UI for the purpose of taking saving details

calm solstice