#saahil_best-practices

1 messages ¡ Page 1 of 1 (latest)

heady boughBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1407725594405371915

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

tiny jetty
#

Hi there, looking into this now

#

Just to clarify, can you let me know specifically why you want to go from automatic to manual payments? Are you using usage based billing?

serene summit
#

Mainly to support stablecoin payments in a similar fashion as card with charge automatically.

heady boughBOT
serene summit
#

I don't mind paying invoices out of band either but it doesn't seem like subscriptions lifecycle management on stripe will play nice with the product requirement of gating access until payment.

granite crescent
#

Hey taking over here

#

We're not super familiar with stablecoin payments in here so I can't advise on that portion

#

But you could do a send_invoice subscription instead of charge_automatically so that each invoice is sent to customers for payment

serene summit
#

The problem with send invoice is that the subscription is moved into an active state even without payment

#

The flow I currently use is subscription creation --> payment from payment sheet --> entitlement gain --> access to product.

granite crescent
#

Couldn't you start with charge_automatically for initial payment?

#

Then move to send_invoice?

#

Or is the concern for the recurring payments as well

serene summit
#

I considered moving from charge_automatically to send_invoice but the payment method that I want to support is not allowed for charge_automatically.

granite crescent
#

I see

#

Well in your system you could keep track of successful payments

#

And not provision the access to the user unless they pay that first send_invoice subscription invoice

serene summit
#

I'm okay with doing that as well, the problem then is that a send_invoice subscription needs an hour to finalize an invoice.

subscription creation --> user has to wait an hour --> payment from payment sheet --> provision based on payment --> access to product

#

If you have a recomendation for getting around step 2 above that'll unblock me

granite crescent
#

You should be able to finalize it manually

serene summit
#

Cool, trying this out now.

So the final flow should look something like:
subscription creation --> finalize invoice --> payment from payment sheet --> provision based on payment --> access to product