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():
|
if response.is_success():
|
||||||
qr_url = response.qr_code
|
qr_url = response.qr_code
|
||||||
logger.info(
|
|
||||||
f"Alipay precreate success: order_no={order.order_no}, "
|
|
||||||
f"qr_url={qr_url}"
|
|
||||||
)
|
|
||||||
return qr_url
|
return qr_url
|
||||||
else:
|
else:
|
||||||
logger.error(
|
logger.error(
|
||||||
|
|||||||
@@ -617,7 +617,7 @@ const AppLayout: React.FC = () => {
|
|||||||
try {
|
try {
|
||||||
setPaying(true);
|
setPaying(true);
|
||||||
const order = await createRechargeOrder(plan.id, paymentMethod);
|
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
|
// Alipay: show the real QR code URL from the backend
|
||||||
setCurrentPaymentInfo({
|
setCurrentPaymentInfo({
|
||||||
price: plan.price,
|
price: plan.price,
|
||||||
|
|||||||
Reference in New Issue
Block a user