payway_generate_qr
Generate a payment QR code for KHQR, WeChat, or Alipay with string, PNG image, and ABA deeplink, enabling direct payments without a hosted checkout page.
Instructions
Generate a KHQR / WeChat / Alipay QR code (string + PNG image + ABA deeplink) for a payment, without a hosted checkout page.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tran_id": "<tran_id>",
"amount": "<amount>",
"currency": "<currency>",
"payment_option": "<payment_option>"
},
"name": "payway_generate_qr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| items | No | ||
| phone | No | ||
| amount | Yes | ||
| payout | No | ||
| tran_id | Yes | ||
| currency | Yes | ||
| lifetime | No | ||
| last_name | No | ||
| first_name | No | ||
| callback_url | No | Plain URL; base64-encoded automatically | |
| custom_fields | No | ||
| purchase_type | No | ||
| return_params | No | ||
| payment_option | Yes | ||
| return_deeplink | No | ||
| qr_image_template | No | template3_color |