|
|
@@ -175,16 +175,16 @@ const Index = () => { |
|
|
|
|
|
|
|
const parsedUrl = new URL(responseData.fpsqrcodeurl); |
|
|
|
const fpsqrcodeurl = "https://"+window.location.hostname+'/payment'+parsedUrl.pathname; |
|
|
|
const fpsqrcodeurlwithFps = "https://"+"fps."+window.location.hostname+'/payment'+parsedUrl.pathname; |
|
|
|
const fpsqrcodeurlwithFps = "https://"+"fps."+window.location.hostname+parsedUrl.pathname; |
|
|
|
console.log(parsedUrl) |
|
|
|
console.log(fpsqrcodeurl) |
|
|
|
console.log(fpsqrcodeurlwithFps) |
|
|
|
|
|
|
|
const openPASGUrl = pasgPath + '?pay_req_obj=' + encodeURIComponent(fpsqrcodeurl) + '&callback=' |
|
|
|
+ encodeURIComponent("https://"+window.location.hostname+ '/paymentPage/fps/fpscallback?TRANSACTION_ID='+transactionid+"&WEB_TOKEN="+webtoken+"&PAYMENT_ID="+localStorage.getItem("paymentId")); |
|
|
|
const openPASGUrlPrd = pasgPathPrd + '?pay_req_obj=' + encodeURIComponent(fpsqrcodeurl) + '&callback=' |
|
|
|
const openPASGUrlPrd = pasgPathPrd + '?pay_req_obj=' + encodeURIComponent(fpsqrcodeurl) + '&callback=' |
|
|
|
+ encodeURIComponent("https://"+window.location.hostname+ '/paymentPage/fps/fpscallback?TRANSACTION_ID='+transactionid+"&WEB_TOKEN="+webtoken+"&PAYMENT_ID="+localStorage.getItem("paymentId")); |
|
|
|
const openPASGUrlPrdFps = pasgPath + '?pay_req_obj=' + encodeURIComponent(fpsqrcodeurlwithFps) + '&callback=' |
|
|
|
const openPASGUrlPrdFps = pasgPath + '?pay_req_obj=' + encodeURIComponent(fpsqrcodeurlwithFps) + '&callback=' |
|
|
|
+ encodeURIComponent("https://"+window.location.hostname+ '/paymentPage/fps/fpscallback?TRANSACTION_ID='+transactionid+"&WEB_TOKEN="+webtoken+"&PAYMENT_ID="+localStorage.getItem("paymentId")); |
|
|
|
setFpsqrcodeurl(openPASGUrl) |
|
|
|
setFpsqrcodeurlPrd(openPASGUrlPrd) |
|
|
|