|
@@ -540,11 +540,14 @@
|
|
|
// const res = await addAddress()
|
|
|
// addressId = res
|
|
|
}
|
|
|
- let left = (window.innerWidth - 600) / 2;
|
|
|
- var importantStuff = window.open('', '_blank',
|
|
|
- 'height=500,width=600,top=300,left=' + left + ',toolbar=no,menubar=no, scrollbars=no,resizable=no,location=no, status=no');
|
|
|
- importantStuff.document.write('Preparing payment...');
|
|
|
- loadingModelEle.show(0)
|
|
|
+ //let left = (window.innerWidth - 600) / 2;
|
|
|
+ // var importantStuff = window.open('', '_blank',
|
|
|
+ // 'height=500,width=600,top=300,left=' + left + ',toolbar=no,menubar=no, scrollbars=no,resizable=no,location=no, status=no');
|
|
|
+ // importantStuff.document.write('Preparing payment...');
|
|
|
+ // loadingModelEle.show(0)
|
|
|
+
|
|
|
+ window.document.write('Preparing payment...');
|
|
|
+
|
|
|
|
|
|
const params = {
|
|
|
//"cartIds": "10002",
|
|
@@ -560,7 +563,9 @@
|
|
|
window.open(data.payment.approval_link, "PayPal",
|
|
|
'height=300,width=600,top=300,left=' + left + ',toolbar=no,menubar=no, scrollbars=no,resizable=no,location=no, status=no');
|
|
|
*/
|
|
|
- importantStuff.location.href = data.payment.approval_link;
|
|
|
+ window.location.replace(data.payment.approval_link);
|
|
|
+
|
|
|
+ //importantStuff.location.href = data.payment.approval_link;
|
|
|
|
|
|
// let uri = data.payment.approval_link;
|
|
|
// let id = "paypal"
|