fix(payment): pass expires_at for Stripe countdown timer
Stripe payment path was setting expiresAt to empty string, causing PaymentStatusPanel to fall back to hardcoded 30-minute default when the popup redirect switches to the waiting view.
This commit is contained in:
@@ -537,7 +537,7 @@ async function createOrder(orderAmount: number, orderType: string, planId?: numb
|
|||||||
if (result.client_secret) {
|
if (result.client_secret) {
|
||||||
// Stripe: show Payment Element inline (user picks method → confirms → redirect if needed)
|
// Stripe: show Payment Element inline (user picks method → confirms → redirect if needed)
|
||||||
paymentState.value = {
|
paymentState.value = {
|
||||||
orderId: result.order_id, qrCode: '', expiresAt: '',
|
orderId: result.order_id, qrCode: '', expiresAt: result.expires_at || '',
|
||||||
paymentType: selectedMethod.value, payUrl: '',
|
paymentType: selectedMethod.value, payUrl: '',
|
||||||
clientSecret: result.client_secret, payAmount: result.pay_amount,
|
clientSecret: result.client_secret, payAmount: result.pay_amount,
|
||||||
orderType,
|
orderType,
|
||||||
|
|||||||
Reference in New Issue
Block a user