Private
Public Access
1
0

works on paypal sandbox - until create subscription

This commit is contained in:
Sander Roosendaal
2019-08-09 10:52:24 +02:00
parent 7e284690de
commit 9d66fcc3f7
5 changed files with 10 additions and 3 deletions

View File

@@ -240,8 +240,11 @@ def create_subscription(rower,data):
nonce_from_the_client = data['payment_method_nonce']
nonce = gateway.payment_method_nonce.find(nonce_from_the_client)
info = nonce.three_d_secure_info
if info is None or not info.liability_shifted:
return False,0
paymenttype = nonce.type
if nonce.type != 'PayPalAccount':
if info is None or not info.liability_shifted:
return False,0
amount = data['amount']
planid = data['plan']