What to Ask Leina to Do with Alipay
Copy a prompt, add your details, and send it to Leina in your connected team chat.
Create a payment URL for a specific merchant order.
Generate an Alipay [desktop or mobile] payment link for order [order number], title [title], amount [amount] CNY. Return the URL and order number. Do not report the payment as complete until its status is queried.
Verify the transaction status and recorded amount.
Query Alipay order [order number]. Report its transaction status and amount, and compare the amount with the expected [amount] CNY.
Submit an explicitly requested refund and check its result.
Refund [amount] CNY for Alipay order [order number] with refund request number [refund number] and reason [reason]. Reuse this number and amount on retries. If the response does not confirm completion, query the refund after at least 10 seconds.
Get Started with Alipay
-
Connect Your Account
Open https://aipay.alipay.com and select One-stop Integration > VibePay > Web Application to obtain the App ID, application private key, and Alipay public key for your environment.
-
Try a Task
Tell Leina what you need in your team chat. Include the source, destination, and expected result.
Set Up Leina in Your Chat → -
Check the Result
Review the result and any changes in the connected app.
Supported Alipay Capabilities
Connect an Alipay merchant application to generate signed checkout URLs, query payments, and manage full or partial refunds. Buyers complete payments through Alipay.
- Desktop and mobile checkout
-
Generate signed payment URLs for buyers to open.
- Create Web Payment
- Create Mobile Payment
- Payment and refund status
-
Query payments, request refunds, and check refund outcomes.
- Query Payment
- Refund Payment
View All 5 Actions
- Create Web Payment
- Create Mobile Payment
- Query Payment
- Refund Payment
- Query Refund
Frequently Asked Questions
Does generating a payment link mean the order is paid?
No. The buyer must open the link and complete payment. Query the transaction to check its status and amount.
How do I confirm a refund succeeded?
fund_change=Y confirms refund success. Otherwise, query the refund; refund_status=REFUND_SUCCESS confirms completion. A successful API request alone does not prove the refund completed.
Can I use a sandbox account?
Yes. Select sandbox and supply its App ID and matching keys. Sandbox transactions do not move real funds.
Your AI employee for Alipay
Tell Leina what you need in your team chat. Include the source, destination, and expected result.