#rob.clayton

1 messages ยท Page 1 of 1 (latest)

cerulean oxideBOT
simple matrix
feral fossil
#

Hi Jack ... can I do this from the admin portal?

simple matrix
#

You mean Dashboard?

#

I don't see an option to set payment_behavior in Dashboard, but you can still set a coupon from Dashboard

feral fossil
#

Right, I can set a coupon ... but I still have to wait an hour before the invoice goes out of draft mode, right?

simple matrix
#

Not really, the first invoice is finalized and paid immediately

feral fossil
#

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

simple matrix
#

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.

feral fossil
#

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?

simple matrix
#

Thanks for the waiting, discord is busy at the moment.

#

Let me take a closer look

feral fossil
#

no worries!

cerulean oxideBOT
cinder dew
#

๐Ÿ‘‹ Taking over this thread, catching up now

feral fossil
#

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.

cinder dew
#

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.

feral fossil
#

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 ... ?

cinder dew
feral fossil
#

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 ...

cinder dew
feral fossil
#

Thanks river!