|
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64 User : jackjohn ( 502) PHP Version : 5.3.17 Disable Function : NONE Directory : /home/jackjohn/public_html/shopsite-images/en-JA/javascript/payment/ |
Upload File : |
ss_jQuery(function($){
var button='.button67';
$(button).removeAttr('onclick');
$(document).on('click', button, function(e){
e.preventDefault();
if(CheckIt(67,0)) {
$(button).prop('disabled', true);
CayanCheckoutPlus.createPaymentToken({
success: function(response) {
ss_jQuery('<input type="hidden" class="sub_appended">').attr('name','cayan_token').val(response.token).appendTo('form.billing, form.confirmation');
$(document).off('click', button);
ss_loadmask('on');
$(button).prop('disabled', false).click();
},
error: function(response) {
done_flag = 0;
ss_loadmask('off');
$(button).prop('disabled', false);
if(response[0].error_code=='SERVER'){
ss_jQuery('<input type="hidden" class="sub_appended">').attr('name','cayan_error').val(response[0].error_code).appendTo('form.billing, form.confirmation');
ss_jQuery('<input type="hidden" class="sub_appended">').attr('name','cayan_reason').val(response[0].reason).appendTo('form.billing, form.confirmation');
var e=document.billing||document.confirmation;
e.pay1.value='';e.cvv2.value='';
$(document).off('click', button);
ss_loadmask('on');
$(button).prop('disabled', false).click();
}else{handle_error(response);}
}
});
}
});
});