#g105b

1 messages · Page 1 of 1 (latest)

tawny houndBOT
valid coral
#

You can't achieve this via payment intents unfortunately. They don't support $0 amounts at all. Really I'd just recommend keeping track of this in your system as you suggested

#

so they can be reconsiled in the dashboard at a later date?
What do you mean by this? What's the usecase exactly?

tardy escarp
#

In the dashboard, the coupons show the number of times they've been redeemed.

valid coral
#

Wait how are you redeeming coupons via payment intents?

tardy escarp
#

Previously the code had been using the Orders API which has been discontinued. I would like to continue with this functionality.

valid coral
#

Which actually should be able to support $0 amounts

#

Alternatively you could switch to stripe checkout to use coupons w/ 1 time payments

tardy escarp
#

OK, thanks - I didn't know about invoices, I'll look into what it takes to implement them.

#

Are they compatible with Stripe Elements?

valid coral
#

You can use the underlying payment intent to collect details via the payment element, but one advantage of invoices is that you don't need that. They come with a stripe-hosted invoice payment page

tardy escarp
#

OK, can I confirm the workflow with you?

  1. Create an invoice, whether the total cost is £15.00 or £0.00
  2. To take payment, continue as usual with the Payment Intent and somehow link the intent to the invoice.
  3. For zero costs, somehow mark the invoice as paid, or apply the coupon to the invoice?
valid coral
#

Not exactly

#

If you have a coupon that discounts the invoice to $0, then just don't collect payment details. Invoice will be paid

tardy escarp
#

OK, thank you for your time and insight. Have a great day.