#Sapna Verma
1 messages · Page 1 of 1 (latest)
Hi there, you can set save_default_payment_method to on_subscription when creating a subscription https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_settings-save_default_payment_method
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I see that the. that only creates the method...how will it store the card details as well?
I want to use that data for future payments
It'll save the payment method and set it as the default payment method of the subscription.
https://stripe.com/docs/payments/save-and-reuse?platform=web#charge-saved-payment-method this is how you create a charge with a saved payment method
Yes, it will automatically invoice your customer when trial ends
when u save the payment method...do you save the payment method details as well....to be used on trial_end
?
like the card details...to be used at tria;_end?
Yes, as I explained earlier, the payment_method is saved as the default_payment_method of the subscription, and will be used to pay the invoices that the subscription generates