works on paypal sandbox - until create subscription
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user