|
|
@@ -332,7 +332,7 @@ const payNowFn = () => {
|
|
|
// 支付状态轮询相关
|
|
|
const pollingTimer = ref(null)
|
|
|
const isPolling = ref(false)
|
|
|
-const maxPollingAttempts = 30 // 最大轮询次数
|
|
|
+const maxPollingAttempts = 100 // 最大轮询次数
|
|
|
const pollingAttempts = ref(0)
|
|
|
const pollingInterval = 3000
|
|
|
|
|
|
@@ -374,8 +374,8 @@ const pay_paypal = () => {
|
|
|
},
|
|
|
onApprove: (data, actions) => {
|
|
|
return actions.order.capture().then((details) => {
|
|
|
- paySuccess({t,callback:router.back});
|
|
|
- stopPolling()
|
|
|
+ //paySuccess({t,callback:router.back});
|
|
|
+ //stopPolling()
|
|
|
});
|
|
|
}
|
|
|
}).render('#paypal-button-container');
|