PayPal: Refactor callback view

This commit is contained in:
Raphael Michel
2016-11-29 16:33:27 +01:00
parent eea6a5e9da
commit 2efde1669d
2 changed files with 32 additions and 26 deletions

View File

@@ -114,7 +114,6 @@ class Paypal(BasePaymentProvider):
logger.error('Invalid payment state: ' + str(payment))
return
request.session['payment_paypal_id'] = payment.id
request.session['payment_paypal_event'] = self.event.id
for link in payment.links:
if link.method == "REDIRECT" and link.rel == "approval_url":
return str(link.href)