1
This commit is contained in:
@@ -353,10 +353,6 @@ def _create_alipay_order(order: PaymentOrder, db_configs: dict[str, str]) -> str
|
||||
|
||||
if response.is_success():
|
||||
qr_url = response.qr_code
|
||||
logger.info(
|
||||
f"Alipay precreate success: order_no={order.order_no}, "
|
||||
f"qr_url={qr_url}"
|
||||
)
|
||||
return qr_url
|
||||
else:
|
||||
logger.error(
|
||||
|
||||
@@ -617,7 +617,7 @@ const AppLayout: React.FC = () => {
|
||||
try {
|
||||
setPaying(true);
|
||||
const order = await createRechargeOrder(plan.id, paymentMethod);
|
||||
if (paymentMethod === 'alipay' && order.qr_url) {
|
||||
if (order.payment_method === 'alipay' && order.qr_url) {
|
||||
// Alipay: show the real QR code URL from the backend
|
||||
setCurrentPaymentInfo({
|
||||
price: plan.price,
|
||||
|
||||
Reference in New Issue
Block a user