#RaduP - installment fee
1 messages · Page 1 of 1 (latest)
Hi there. One moment
You could create an invoice item for the customer for the installment fee: https://stripe.com/docs/api/invoiceitems/create. That would be tacked on to the subscription's first invoice
so, the flow would be:
- get credit card details (eg: SetupIntent )
- create the subscription (via the subscription API)
- create an invoice for the user
- the invoice will be paid automatically with the card that the user had used for the subscription ?
Ideal flow would be:
- Create customer object
- Create invoice item for installment amount
- Create subscription object
- Use client secret from the subscription object's first payment intent to collect payment details and pay the first invoice (that will include the invoice item and subscription recurring price)
This guide includes all steps except for the invoice item one: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements