create_payment_url
Generate a VNPay payment URL by providing order details, amount, and return URL. Customers complete payment on VNPay's secure page.
Instructions
Generate a VNPay payment URL.
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": {
"order_id": "<order_id>",
"amount": "<amount>",
"order_info": "<order_info>",
"return_url": "<return_url>"
},
"name": "create_payment_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | Unique order reference | |
| amount | Yes | Amount in VND | |
| order_info | Yes | Order description | |
| return_url | Yes | Return URL after payment | |
| ip_addr | No | Customer IP address | 127.0.0.1 |
| locale | No | Language | vn |
| bank_code | No | Bank code (empty = user selects on VNPay) |