forked from CGM_Public/pretix_original
Refresh order after PayPal call
This commit is contained in:
@@ -187,6 +187,7 @@ class Paypal(BasePaymentProvider):
|
|||||||
])
|
])
|
||||||
payment.execute({"payer_id": request.session.get('payment_paypal_payer')})
|
payment.execute({"payer_id": request.session.get('payment_paypal_payer')})
|
||||||
|
|
||||||
|
order.refresh_from_db()
|
||||||
if payment.state == 'pending':
|
if payment.state == 'pending':
|
||||||
messages.warning(request, _('PayPal has not yet approved the payment. We will inform you as soon as the '
|
messages.warning(request, _('PayPal has not yet approved the payment. We will inform you as soon as the '
|
||||||
'payment completed.'))
|
'payment completed.'))
|
||||||
|
|||||||
Reference in New Issue
Block a user