fixing 3D secure issue
This commit is contained in:
@@ -103,8 +103,9 @@ def make_payment(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
|
||||
if nonce.type.lower() == 'creditcard':
|
||||
if info is None or not info.liability_shifted:
|
||||
return False,0
|
||||
|
||||
amount = data['amount']
|
||||
amount = '{amount:.f2}'.format(amount=amount)
|
||||
@@ -138,8 +139,9 @@ def update_subscription(rower,data,method='up'):
|
||||
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
|
||||
if nonce.type.lower() == 'creditcard':
|
||||
if info is None or not info.liability_shifted:
|
||||
return False,0
|
||||
amount = data['amount']
|
||||
amount = '{amount:.2f}'.format(amount=amount)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user