fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix
[wolnelektury.git]
/
src
/
paypal
/
rest.py
diff --git
a/src/paypal/rest.py
b/src/paypal/rest.py
index
4d26972
..
11693cb
100644
(file)
--- a/
src/paypal/rest.py
+++ b/
src/paypal/rest.py
@@
-117,11
+117,6
@@
def check_agreement(agreement_id):
return a.state == 'Active'
return a.state == 'Active'
-def user_is_subscribed(user):
- agreements = BillingAgreement.objects.filter(user=user)
- return any(agreement.check_agreement() for agreement in agreements)
-
-
def execute_agreement(token):
return paypalrestsdk.BillingAgreement.execute(token)
def execute_agreement(token):
return paypalrestsdk.BillingAgreement.execute(token)