Create Checkout Session
create_checkoutCreate a hosted checkout session for PayMongo payments, returning a checkout URL to redirect customers for payment.
Instructions
Create a hosted checkout session (returns a checkout 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": {
"amount": "<amount>",
"success_url": "<success_url>",
"cancel_url": "<cancel_url>"
},
"name": "create_checkout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount in centavos as an integer (e.g. 10000 = ₱100.00). | |
| currency | No | ISO currency code. | PHP |
| cancel_url | Yes | URL to redirect to on cancel. | |
| description | No | Checkout / line-item description. | |
| success_url | Yes | URL to redirect to on success. | |
| payment_method_types | No | Payment method types. Common PayMongo values: card, gcash, grab_pay, paymaya, billease, dob, qrph. |