Commit a020fc52 authored by erio's avatar erio
Browse files

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.
parent 75155903
...@@ -537,7 +537,7 @@ async function createOrder(orderAmount: number, orderType: string, planId?: numb ...@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment