1 eb$(function(){ 2//amazonPayãã°ã¤ã³ãã¿ã³ 3 if (eb$('#AmazonPayV2Button')[0] 4 && eb$('#apv2IsSandBox').val() != "" && eb$('#apv2IsSandBox').val() != "undefined"){ 5 amazon.Pay.renderButton('#AmazonPayV2Button', { 6 // set checkout environment 7 merchantId: eb$('#apv2SellerId').val(), 8 ledgerCurrency: eb$('#apv2LedgerCurrency').val(), 9 sandbox: eb$('#apv2IsSandBox').val() == '1', 10 // customize the buyer experience 11 checkoutLanguage: eb$('#apv2CheckoutLanguage').val(), 12 productType: eb$('#apv2ProductType').val(), 13 placement: eb$('#apv2Placement').val(), 14 buttonColor: eb$('#apv2ButtonColor').val(), 15 // configure Create Checkout Session request 16 createCheckoutSessionConfig: { 17 payloadJSON: eb$('#apv2Payload').val(), // string generated in step 2 18 signature: eb$('#apv2Signature').val(), // signature generated in step 3 19 publicKeyId: eb$('#apv2PublicKeyId').val(), 20 authtoken: eb$('#apv2AuthToken').val() 21 } 22 }); 23 } 24 25 //amazonPayãå±ãå æ å ±å¤æ´ãã¿ã³ 26 if (eb$('#AmazonPayV2ChangeSendButton')[0]){ 27 amazon.Pay.bindChangeAction('#AmazonPayV2ChangeSendButton', { 28 amazonCheckoutSessionId: eb$('#apv2CheckoutSessionId').val(), 29ãã changeAction: 'changeAddress' 30 }); 31 } 32 33 //amazonPayãæ¯æãæ å ±å¤æ´ãã¿ã³ 34 if (eb$('#AmazonPayV2ChangePaymentButton')[0]){ 35 amazon.Pay.bindChangeAction('#AmazonPayV2ChangePaymentButton', { 36 amazonCheckoutSessionId: eb$('#apv2CheckoutSessionId').val(), 37 changeAction: 'changePayment' 38 }); 39 } 40 41 //GETãã©ã¡ã¼ã¿åå¾ 42 function getURLParameter(name, source){ 43 return decodeURIComponent(((new RegExp('[?|&|#]' + name + '=([^&;]+?)(&|#|;|$)').exec(source)) || [void 0, ""])[1].replace(/\+/g, '%20' || null)); 44 } 45 //amazonãã°ã¤ã³èªåãªãã¤ã¬ã¯ã 46 if (eb$('#amazonPayPreLogin')[0]){ 47 var amazonCheckoutSessionId = null 48 var checkoutSessionId = getURLParameter("amazonCheckoutSessionId", location.hash); 49 if(typeof checkoutSessionId === 'string' && checkoutSessionId.match(/^Atza/)){ 50 amazonCheckoutSessionId = getURLParameter("amazonCheckoutSessionId", location.hash); 51 }else{ 52 amazonCheckoutSessionId= getURLParameter("amazonCheckoutSessionId", location.search); 53 } 54 eb$('#amazonCheckoutSessionId').val(amazonCheckoutSessionId); 55 eb$('#amazonPayPreLogin').submit(); 56 } 57}); 58 59 //amazonãã°ã¤ã³ãªãã¤ã¬ã¯ã 60 function clickAmazonLoginPreButton() { 61 eb$('#amazonPayPreLogin').submit(); 62 }
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.