#rob.clayton
1 messages ยท Page 1 of 1 (latest)
Hi there, yes you can set payement_behaviour to allow_incomplete (https://stripe.com/docs/api/subscriptions/create#create_subscription-payment_behavior) so that you can create a subscription without a payment_method on record.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
https://stripe.com/docs/api/subscriptions/create#create_subscription-coupon you can also specify a coupon to give 100% off for you customer.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hi Jack ... can I do this from the admin portal?
You mean Dashboard?
I don't see an option to set payment_behavior in Dashboard, but you can still set a coupon from Dashboard
Right, I can set a coupon ... but I still have to wait an hour before the invoice goes out of draft mode, right?
Not really, the first invoice is finalized and paid immediately
the first invoice for a subscription? Doesn't seem to be in my testing such as this example:
sub_1NbF8wDBF4LGcRTgKY3lzuhK
They have no payment method, however it is a $0 invoice
OK, that's because you have a webhook endpoint that listens to invoice.created event, you can finalize the invoice in your webhook handling code.
hmmm ... can I just not listen to that event?
and does that work while I've got a localend point receiving ALL events(?)
I've removed invoice.created from my webhook events (but I assume still part of my local listener):
in_1NbFPmDBF4LGcRTgOuie2r5J
Still has the 1 hour wait
Or am I understanding incorrectly?
no worries!
๐ Taking over this thread, catching up now
thanks!
Trying to create a subscription (via admin portal), and using a 100% discount and having the invoice (first for the subscription) marked as paid without the 1 hour delay usually prescribed.
I've removed the invoice.created webhook monitoring from all except my local listener (that automatically consumes all events I assume).
Just as a summary.
If the invoice.created event is not responded with 200, Stripe will take up to 72 hours to finalise the invoice: https://stripe.com/docs/billing/subscriptions/overview#subscription-events
Sent when an invoice is created for a new or renewing subscription. If Stripe fails to receive a successful response to invoice.created, then finalizing all invoices with automatic collection is delayed for up to 72 hours. Read more about finalizing invoices.
Yep, and if a 200 1 hour right?
Is there a way I can have that first invoice automatically collected before the 1 hour period?
The reference mentions manually "finalizing" the invoice ... I can't see how to do that via the interface ... ?
You may finalise the invoice with API before 1 hour period: https://stripe.com/docs/api/invoices/finalize
I don't want to use the api, because I want the admin to choose to do the finalizing
You'll note the documentation says I can manually finalize via the Dashboard ...
I don't seem to find the finalize button in https://dashboard.stripe.com/test/invoices/in_1NbFPmDBF4LGcRTgOuie2r5J as well. This channel is for technical integration and I'm afraid I don't have necessary expertise with Dashboard operation. I'd recommend checking with Support https://support.stripe.com/contact about the steps to finalise an invoice in Dashboard
Thanks river!