Collapse gift card option when the gift card is not enough

This commit is contained in:
Raphael Michel
2019-10-18 18:18:45 +02:00
parent a326ee8f75
commit e8a2f7e349

View File

@@ -985,6 +985,7 @@ class GiftCardPayment(BasePaymentProvider):
remainder = cart['total'] - gc.value
if remainder >= Decimal('0.00'):
del cs['payment']
messages.success(request, _("Your gift card has been applied, but {} still need to be paid. Please select a payment method.").format(
money_filter(remainder, self.event.currency)
))