-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -138,90 +138,90 @@ if (!String.prototype.trim) { | |
}, | ||
'#secure-payment-field[name="cardNumber"]': { | ||
background: | ||
'transparent url(' + | ||
'white url(' + | ||
THIS.options.baseUrl.replace('/index.php', '') + | ||
'skin/frontend/base/default/transit/images/[email protected]) no-repeat right', | ||
'background-size': '50px 30px', | ||
}, | ||
'#secure-payment-field[name="cardNumber"].valid.card-type-visa': { | ||
background: | ||
'transparent url(' + | ||
'white url(' + | ||
THIS.options.baseUrl.replace('/index.php', '') + | ||
'skin/frontend/base/default/transit/images/[email protected]) no-repeat top right', | ||
'background-size': '75px 84px', | ||
}, | ||
'#secure-payment-field[name="cardNumber"].invalid.card-type-visa': { | ||
background: | ||
'transparent url(' + | ||
'white url(' + | ||
THIS.options.baseUrl.replace('/index.php', '') + | ||
'skin/frontend/base/default/transit/images/[email protected]) no-repeat bottom right', | ||
'background-size': '75px 84px', | ||
}, | ||
'#secure-payment-field[name="cardNumber"].invalid.card-type-discover': { | ||
background: | ||
'transparent url(' + | ||
'white url(' + | ||
THIS.options.baseUrl.replace('/index.php', '') + | ||
'skin/frontend/base/default/transit/images/[email protected]) no-repeat right', | ||
'background-size': '70px 74px', | ||
'background-position-y': '-35px', | ||
}, | ||
'#secure-payment-field[name="cardNumber"].valid.card-type-discover': { | ||
background: | ||
'transparent url(' + | ||
'white url(' + | ||
THIS.options.baseUrl.replace('/index.php', '') + | ||
'skin/frontend/base/default/transit/images/[email protected]) no-repeat right', | ||
'background-size': '70px 74px', | ||
'background-position-y': '2px', | ||
}, | ||
'#secure-payment-field[name="cardNumber"].invalid.card-type-amex': { | ||
background: | ||
'transparent url(' + | ||
'white url(' + | ||
THIS.options.baseUrl.replace('/index.php', '') + | ||
'skin/frontend/base/default/transit/images/[email protected]) no-repeat center right', | ||
'background-size': '50px 55px', | ||
}, | ||
'#secure-payment-field[name="cardNumber"].valid.card-type-amex': { | ||
background: | ||
'transparent url(' + | ||
'white url(' + | ||
THIS.options.baseUrl.replace('/index.php', '') + | ||
'skin/frontend/base/default/transit/images/[email protected]) no-repeat center right', | ||
'background-size': '50px 55px', | ||
}, | ||
'#secure-payment-field[name="cardNumber"].invalid.card-type-jcb': { | ||
background: | ||
'transparent url(' + | ||
'white url(' + | ||
THIS.options.baseUrl.replace('/index.php', '') + | ||
'skin/frontend/base/default/transit/images/[email protected]) no-repeat right', | ||
'background-size': '75px 75px', | ||
'background-position-y': '10px -35px', | ||
}, | ||
'#secure-payment-field[name="cardNumber"].valid.card-type-jcb': { | ||
background: | ||
'transparent url(' + | ||
'white url(' + | ||
THIS.options.baseUrl.replace('/index.php', '') + | ||
'skin/frontend/base/default/transit/images/[email protected]) no-repeat right', | ||
'background-size': '75px 76px', | ||
'background-position-y': '10px 2px', | ||
}, | ||
'#secure-payment-field[name="cardNumber"].invalid.card-type-mastercard': { | ||
background: | ||
'transparent url(' + | ||
'white url(' + | ||
THIS.options.baseUrl.replace('/index.php', '') + | ||
'skin/frontend/base/default/transit/images/[email protected]) no-repeat bottom right', | ||
'background-size': '71px', | ||
'background-position-y': '-35px', | ||
}, | ||
'#secure-payment-field[name="cardNumber"].valid.card-type-mastercard': { | ||
background: | ||
'transparent url(' + | ||
'white url(' + | ||
THIS.options.baseUrl.replace('/index.php', '') + | ||
'skin/frontend/base/default/transit/images/[email protected]) no-repeat top right', | ||
'background-size': '71px', | ||
'background-position-y': '3px', | ||
}, | ||
'#secure-payment-field.card-cvv': { | ||
background: | ||
'transparent url(' + | ||
'white url(' + | ||
THIS.options.baseUrl.replace('/index.php', '') + | ||
'skin/frontend/base/default/transit/images/cvv1.png) no-repeat right', | ||
'background-size': '50px 30px', | ||
|
@@ -280,8 +280,8 @@ if (!String.prototype.trim) { | |
return; | ||
} | ||
|
||
if (response.error.message) { | ||
alert(response.error.message); | ||
if (response.reasons && response.reasons.length > 0) { | ||
alert(response.reasons[0].message); | ||
} else { | ||
alert('Unexpected error.'); | ||
} | ||
|
@@ -534,8 +534,8 @@ function transitMultishipping(multiForm) { | |
} | ||
|
||
if (response && response.error) { | ||
if (response.error.message) { | ||
alert(response.error.message); | ||
if (response.reasons && response.reasons.length > 0) { | ||
alert(response.reasons[0].message); | ||
} | ||
} else if (response && response.token_value) { | ||
tokenField.value = response.token_value; | ||
|
@@ -653,8 +653,8 @@ Event.observe(document, 'aw_osc:onestepcheckout_form_init_before', function(e) { | |
} | ||
|
||
if (response && response.error) { | ||
if (response.error.message) { | ||
alert(response.error.message); | ||
if (response.reasons && response.reasons.length > 0) { | ||
alert(response.reasons[0].message); | ||
} | ||
this.enablePlaceOrderButton(); | ||
this.hidePleaseWaitNotice(); | ||
|
@@ -781,8 +781,8 @@ document.observe('dom:loaded', function() { | |
} | ||
|
||
if (response && response.error) { | ||
if (response.error.message) { | ||
alert(response.error.message); | ||
if (response.reasons && response.reasons.length > 0) { | ||
alert(response.reasons[0].message); | ||
} | ||
checkout.setLoadWaiting(false); | ||
} else if (response && response.token_value) { | ||
|
@@ -840,8 +840,8 @@ document.observe('dom:loaded', function() { | |
} | ||
|
||
if (response && response.error) { | ||
if (response.error.message) { | ||
alert(response.error.message); | ||
if (response.reasons && response.reasons.length > 0) { | ||
alert(response.reasons[0].message); | ||
} | ||
checkout.setLoadWaiting(false); | ||
} else if (response && response.token_value) { | ||
|
@@ -981,8 +981,8 @@ document.observe('dom:loaded', function() { | |
} | ||
|
||
if (response && response.error) { | ||
if (response.error.message) { | ||
alert(response.error.message); | ||
if (response.reasons && response.reasons.length > 0) { | ||
alert(response.reasons[0].message); | ||
} | ||
} else if (response && response.token_value) { | ||
tokenField.value = response.token_value; | ||
|
@@ -1091,8 +1091,8 @@ document.observe('dom:loaded', function() { | |
} | ||
|
||
if (response && response.error) { | ||
if (response.error.message) { | ||
alert(response.error.message); | ||
if (response.reasons && response.reasons.length > 0) { | ||
alert(response.reasons[0].message); | ||
} | ||
|
||
$('onestepcheckout-place-order-loading').hide(); | ||
|
@@ -1173,7 +1173,7 @@ document.observe('dom:loaded', function() { | |
IWD.OPC.Checkout.hideLoader(); | ||
IWD.OPC.Checkout.xhr = null; | ||
IWD.OPC.Checkout.unlockPlaceOrder(); | ||
alert(response.error.message); | ||
alert(response.reasons[0].message); | ||
} else if (response && response.token_value) { | ||
tokenField.value = response.token_value; | ||
lastFourField.value = response.card.number.substr(-4); | ||
|
@@ -1350,8 +1350,8 @@ document.observe('dom:loaded', function() { | |
} | ||
|
||
if (response && response.error) { | ||
if (response.error.message) { | ||
alert(response.error.message); | ||
if (response.reasons && response.reasons.length > 0) { | ||
alert(response.reasons[0].message); | ||
$ji('.iwd_opc_loader_wrapper.active').hide(); | ||
} | ||
} else if (response && response.token_value) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters