#ezequielpato.
1 messages · Page 1 of 1 (latest)
If you saved the customer's payment method for future use, you can create a Subscription for them. A Product is required to be created to be used with the subscription though
Hello Pompey how are you ?
Ok very well i understand
I can see the payment history of the clients
You say that I need to have a product created in Stripe?
I don't understand how to create the subscription from the payment method.
Doing well!
And yes, the API requires a product ID (or a price ID but that requires a product ID to get created) https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price_data-product
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
You can pass in the existing payment method as the default_payment_method of the subscription or you can set it in invoice_settings.default_payment_method on the Customer https://stripe.com/docs/api/subscriptions/create#create_subscription-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.
Ok thanke you! I will read the those links.
In our case we have our owns products in our own data base. We just use Stripe for payments.
You say to me that we need the create another product into the Stripe dashboard with the same price.
And when the client make the payment. We need the save the customer payment method to create the subscription?
Or Maybe it would be better to use a pre-created subscription and share the payment link. I fear having a double payment.
I think this doc may be helpful for you. It shows how to make a payment page for users to sign up for your subscription which it sounds like you may want to do. This will save the payment method during subscription signup https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
If you are looking to take a one time payment and then later start a subscription you can create a subscription with the saved PM after https://stripe.com/docs/payments/save-during-payment
Ok thanks a lot for your help, grate information!
The idea is. When the customer make the payment, in that moment, we don´t need and ordinary payment!, we need a subscription with auto renovation. And in a future the costumers be able to cancel it, when they want.
I don´t now if I explained well.
I'm reading the information
Gotcha, that sounds more like this guide. You can build your own page or use a prebuilt Checkout page for that https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
Similarly for subscription management, you can build your own page or use the prebuilt Customer Portal page
https://stripe.com/docs/customer-management
tranks for your help