PayPal: Fix issue in ASV setup (PRETIXEU-A5V)

This commit is contained in:
Raphael Michel
2024-06-10 12:28:57 +02:00
parent e28bbb7ea0
commit d0184c1f48

View File

@@ -1100,6 +1100,8 @@ class PaypalAPM(PaypalMethod):
payment.save(update_fields=["provider"])
paypal_order = self._create_paypal_order(request, payment, None)
if not paypal_order:
raise PaymentException(_('We had trouble communicating with PayPal'))
payment.info = json.dumps(paypal_order.dict())
payment.save(update_fields=['info'])