#ib-subscription-credit
1 messages · Page 1 of 1 (latest)
ib-subscription-credit
Hey @hasty vector ! Usually a card on file is only required if the first Invoice requires a payment.
If you plan to create the Subscription first and then find a way to pay the Invoice after, you want to pass payment_behaviour: 'default_incomplete' in the API first
if i pass default_incomplete will it immediately eat away at the credit?
the first invoice may require a payment, but I want it to use the credit and not require the customer to put a payment method on file
It will use the credit for the first Invoice yes. Just try it in Test mode, it will be a lot clearer after that
okay cool
I'll come back in a bit if i have more questions
btw, i did it through the UI and the developer logs show the POST looking like this:
{
"customer": "cus_xyz",
"enable_incomplete_payments": "false",
"currency": "usd",
"items": {
"0": {
"quantity": "1",
"price": "price_xyz"
}
},
"off_session": "true"
}
req_ctlNf3SWFv0UM7
that's just a Dashboard request so that really can't tell me or you much
Roger