1
This commit is contained in:
@@ -325,6 +325,13 @@ def _create_alipay_order(order: PaymentOrder, db_configs: dict[str, str]) -> str
|
||||
|
||||
response = client.execute(request)
|
||||
|
||||
if isinstance(response, str):
|
||||
logger.error(
|
||||
f"Alipay precreate returned string instead of object: "
|
||||
f"order_no={order.order_no}, response={response[:500]}"
|
||||
)
|
||||
return None
|
||||
|
||||
if response.code == "10000":
|
||||
qr_url = response.qr_code
|
||||
logger.info(
|
||||
|
||||
Reference in New Issue
Block a user