purchase credits
in your system, payment is immediately triggered, and credits are only granted once payment is confirmed successful. With credits in hand, they can use your system and watch their credit balance decrease in real time. Once their balance reaches zero, your system should cut them off from further use until they purchase another batch of credits.
customers
endpoint to create a customer, linking to the customer’s Stripe customer ID:
contracts/create
endpoint to create a contract:
false
.
true
to allow them to start to spend.
contracts/edit
endpoint to facilitate the prepaid credit:
customer_entitled
to false
.
threshold_billing_configuration
object within the create contract request:
is_enabled
to false
. To remediate, we recommend sending an email or in-platform notification to the customer prompting them to update their billing information. Upon update of this information, you should edit the contract and set is_enabled
back to true
, which triggers another recharge.