#elporter-subscription
1 messages ยท Page 1 of 1 (latest)
Hi ๐ yes, you can create a Subscription without a Payment Method, are you encountering an error when you try to do so?
i have a customer without payment method and that return this error
Are you setting the Subscription to charge automatically?
If so, then a Payment Method is required when creating a Subscription via the dashboard (I believe, we focus more on the API side of these flows and are not as familiar with the Stripe dashboard).
yes i've tried in the dashboard first , but i need this on the API side
if i remove Subscription to charge automatically , the email with the invoice will send to the customer?
You have more control when working with the API. In addition to being able to specify your desired collection_method (which controls whether Invoices are emailed to your customers or if payments are automatically attempted for them), you can also set the payment_behavior which gives you more flexibility regarding how the Subscription creation request will behave:
https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_behavior
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
elporter-subscription