com.drastikbydesign.stripe
com.drastikbydesign.stripe copied to clipboard
Contribution fails with 100% discount and only Stripe
If Stripe is the only form of payment, and someone uses a 100% discount code (CiviDiscount), I get an error because Stripe expects payment info and of course the user isn't putting it in for $0.
@h-c-c has been able to reproduce the error for this use case, fwiw.
We confirm the issue on Civicrm 4.7.19 and stripe-4.7-dev. We tested the "fix" mentioned on that page https://github.com/drastik/com.drastikbydesign.stripe/issues/211 but same result.
I had the same problem - I applied #211 but also uncommented the return true line at the end, and now it works.
@jmcclelland Using currentTotal
doesn't seem to work consistently if the default priceset item isn't the item that has the discount. I've used calculateTotalFee()
instead.
My PR https://github.com/drastik/com.drastikbydesign.stripe/pull/252