#_zepatrik

1 messages · Page 1 of 1 (latest)

spark hollyBOT
little hinge
#
  1. Not directly. Instead you'd process a one-time payment for X and then manually increment their balance via https://stripe.com/docs/api/customer_balance_transactions/create
  2. That should be how it works automatically when the associated Customer object has a positive balance: https://stripe.com/docs/billing/customer/balance#details

Learn how to use the customer credit balance.

thorn nymph
#

so creating manual payments e.g. with certain meta-data, and then using webhooks to update the balance should work?

little hinge
#

Yep that's a common flow for people leveraging the balance

thorn nymph
#

if we just delete all payment methods from the customer, no automatic charge can be made as well

#

does that produce errors when the invoice totals to 0$ because of the balance?

little hinge
#

Not sure I understand. If you want to prevent any automatic payment attempts when the balance is 0 then switch to collection_method: 'send_invoice'