From 2e0e49f7d68a52ed00c02587cf59c01964e14df9 Mon Sep 17 00:00:00 2001 From: Alice Date: Mon, 16 Jan 2017 02:45:17 +0000 Subject: [PATCH] Admin: Add PayPal subscription page URL --- payments/backends/paypal.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/payments/backends/paypal.py b/payments/backends/paypal.py index 6e6c5aa..6a395cb 100644 --- a/payments/backends/paypal.py +++ b/payments/backends/paypal.py @@ -202,3 +202,9 @@ class PaypalBackend(BackendBase): url = 'https://history.paypal.com/webscr?cmd=_history-details-from-hub&id=%s' return url % payment.backend_extid + def get_subscr_ext_url(self, subscr): + if not subscr.backend_extid: + return None + return ('https://www.paypal.com/fr/cgi-bin/webscr?cmd=_profile-recurring-payments' + '&encrypted_profile_id=%s' % subscr.backend_extid) +