#Mr.oggy
1 messages · Page 1 of 1 (latest)
Can you give me the actual Subscription ID?
You should be able to grab it from the request's response or from your Dashboard
sub_1NO0ewKqJIWpMptyCRn6o8PK
Thanks looking
Okay so you are using send_invoice here
So that is the reason
You would only have the Subscription be incomplete if you are using charge_automatically
How can I set subscription to be inactive then
becasue every time I create it show active status even though, I did't make a payment
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
base on this doc. Subscription that I create should be inactive status, but I got active status instead
I cannot use charge_automatically becasue of promtpay method
Subscriptions that use send_invoice will always be active initially
Until payment fails or it is past the due_date
There is not really a way aroudn this
It is how send_invoice works
So my user will got free active subscription without making payment?
Or is there a way that I can set subscription to be inactive and waiting for payment to take action
You would need to track this yourself on your end if you are going to rely on send_invoice
The design here for incomplete is to use charge_automatically. You could also use charge_automatically and then send the Invoice using https://stripe.com/docs/api/invoices/send
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.