#diego_54610
1 messages · Page 1 of 1 (latest)
The docs said I had to that setup_future_usage if I wanted to use the posit credit balance before trying to charge from the payment method
Where did you read it from?
The above code is to save the payment method that is used in this payment. It's expected to charge from the payment method that is collected in this Payment Intent
It will not charge from the credit balance
I read it in the docs AI
After that, I do:
intent = Stripe::PaymentIntent.update(intent.id, {
payment_method: payment_method
})
intent = Stripe::PaymentIntent.confirm(intent.id)
So if this is not the way, how can I guarantee it will try to charge from the credit balance first and if not from the saved payment method?
This is not how Payment Intent works. It's not possible to charge credit balance first then from saved payment method.
Credit balance is used in invoicing and subscription, not one-time payment intent.
If Payment Intent is used, it will always charge from the payment method saved: https://stripe.com/docs/payments/save-during-payment
I see, so credit balance is not compatible with one-time payments ☹️
What is that "invoicing" you mentioned 🤔
Invoicing is a Product that Stripe offers: https://stripe.com/docs/invoicing
Thank you, I'll check it out