Skip to main content
Stripe is your billing and invoice generation system. Logic about the subscription products should live in Stripe. Thus, to modify a subscription, use Stripe’s endpoints (docs). When a subscription is updated in Stripe, Loop will hear about it via Stripe webhooks and will update the subscription in our system.
The customer does not need another payment link as they are already set up to pay via Loop.

Key thing to know

When you direct Stripe to bill immediately, it will create a draft that will not be finalized for 1 hour and the due date will be the end of the business day. You can, however, change the due date and finalization time. Solution: You can change the due_date on the invoice to the current timestamp with this method and force an invoice to finalize immediately with this method. Also, the best practice is to set the due_date to now + 2 seconds to account for any processing time on Stripe’s side (invoices cannot be due in the past). Be sure to keep automatic_collection:false so Loop can collect on the payment. Once an invoice is finalized, Loop will immediately attempt to charge the customer. Stripe will mark the invoice as ‘due’ until it is paid onchain. This could take several minutes depending on the chain.

Upgrade by paying in crypto

Take a payment for an upgrade in crypto

Wallet balance and authorization

Learn how to handle low balance and authorization issues
I