| | |
| | | mask: false |
| | | }); |
| | | try { |
| | | // await getOrderPayment({ orderId: targetOrderId }); |
| | | // syncPaymentSuccessStatus(); |
| | | await getOrderPayment({ orderId: targetOrderId }); |
| | | syncPaymentSuccessStatus(); |
| | | |
| | | |
| | | const paymentResult = await getOrderPayment({ orderId: targetOrderId }); |
| | | const paymentStatus = Number(paymentResult?.status); |
| | | // const paymentResult = await getOrderPayment({ orderId: targetOrderId }); |
| | | // const paymentStatus = Number(paymentResult?.status); |
| | | |
| | | if (paymentStatus === RobotaxiPaymentEntryStatus.Unsigned) { |
| | | const cashierToken = paymentResult?.value?.token; |
| | | if (!cashierToken) { |
| | | Taro.showToast({ title: '支付凭证缺失,请稍后重试', icon: 'none' }); |
| | | return; |
| | | } |
| | | await deps.handleUnsignedPayment(cashierToken); |
| | | return; |
| | | } |
| | | // if (paymentStatus === RobotaxiPaymentEntryStatus.Unsigned) { |
| | | // const cashierToken = paymentResult?.value?.token; |
| | | // if (!cashierToken) { |
| | | // Taro.showToast({ title: '支付凭证缺失,请稍后重试', icon: 'none' }); |
| | | // return; |
| | | // } |
| | | // await deps.handleUnsignedPayment(cashierToken); |
| | | // return; |
| | | // } |
| | | |
| | | // if (paymentStatus === RobotaxiPaymentEntryStatus.Signed) { |
| | | // const signedPaymentValue = paymentResult?.value as SignedOrderPaymentValue; |
| | |
| | | // return; |
| | | // } |
| | | |
| | | Taro.showToast({ title: '暂不支持当前支付方式', icon: 'none' }); |
| | | // Taro.showToast({ title: '暂不支持当前支付方式', icon: 'none' }); |
| | | |
| | | } catch (error) { |
| | | Taro.showToast({ title: '支付失败,请重试', icon: 'none' }); |