PPv2: Include other fees than payment fees into the XHR-calculation

This commit is contained in:
Martin Gross
2022-06-01 12:10:58 +02:00
parent a8286f77d8
commit 68097291ca
2 changed files with 13 additions and 5 deletions

View File

@@ -525,7 +525,7 @@ class PaypalMethod(BasePaymentProvider):
)
request.session['payment_paypal_payment'] = payment.pk
elif cart and not payment:
value = self.format_price(cart['total'] + cart['fee'])
value = self.format_price(cart['cart_total'] + cart['cart_fees'] + cart['payment_fee'])
currency = request.event.currency
description = __('Event tickets for {event}').format(event=request.event.name)
custom_id = '{prefix}{slug}{postfix}'.format(