Refresh order after PayPal call

This commit is contained in:
Raphael Michel
2017-02-03 12:19:35 +01:00
parent 3037309711
commit 2d370aaf5a

View File

@@ -187,6 +187,7 @@ class Paypal(BasePaymentProvider):
])
payment.execute({"payer_id": request.session.get('payment_paypal_payer')})
order.refresh_from_db()
if payment.state == 'pending':
messages.warning(request, _('PayPal has not yet approved the payment. We will inform you as soon as the '
'payment completed.'))