Merge branch 'release/v13.84' into master
This commit is contained in:
@@ -103,8 +103,9 @@ def make_payment(rower,data):
|
|||||||
nonce_from_the_client = data['payment_method_nonce']
|
nonce_from_the_client = data['payment_method_nonce']
|
||||||
nonce = gateway.payment_method_nonce.find(nonce_from_the_client)
|
nonce = gateway.payment_method_nonce.find(nonce_from_the_client)
|
||||||
info = nonce.three_d_secure_info
|
info = nonce.three_d_secure_info
|
||||||
if info is None or not info.liability_shifted:
|
if nonce.type.lower() == 'creditcard':
|
||||||
return False,0
|
if info is None or not info.liability_shifted:
|
||||||
|
return False,0
|
||||||
|
|
||||||
amount = data['amount']
|
amount = data['amount']
|
||||||
amount = '{amount:.f2}'.format(amount=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_from_the_client = data['payment_method_nonce']
|
||||||
nonce = gateway.payment_method_nonce.find(nonce_from_the_client)
|
nonce = gateway.payment_method_nonce.find(nonce_from_the_client)
|
||||||
info = nonce.three_d_secure_info
|
info = nonce.three_d_secure_info
|
||||||
if info is None or not info.liability_shifted:
|
if nonce.type.lower() == 'creditcard':
|
||||||
return False,0
|
if info is None or not info.liability_shifted:
|
||||||
|
return False,0
|
||||||
amount = data['amount']
|
amount = data['amount']
|
||||||
amount = '{amount:.2f}'.format(amount=amount)
|
amount = '{amount:.2f}'.format(amount=amount)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user