- Issue created by @AaronBauman
- πΊπΈUnited States AaronBauman Philadelphia
Issue is in the destructor, which instead of cancelling a zero-dollar payment intent, attempts to update the amount to zero.
This is invalid, according to Stripe, which throws an exception:
The amount must be greater than or equal to the minimum charge amount allowed for your account and the currency set (https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). If you want to save a Payment Method for future use without an immediate payment, use a Setup Intent instead: https://docs.stripe.com/payments/setup-intents
The exception gets caught and logged, but the payment intent does not get removed.
Subsequently, upon checkout, the payment intent is processed with the incorrect amount. - Merge request !180Issue #3539833 by aaronbauman: Regression: Reducing the order total to 0 after... β (Open) created by AaronBauman
- πΊπΈUnited States AaronBauman Philadelphia
Opened MR 180, which cancels zero-balance payment intents during the destruct method of the order payment intent subscriber.
Not sure this is the best way to handle it, but it's working for me.