creditcard_create_payment
Creates a credit/debit card payment session and returns a payment URL. The customer is redirected to a hosted checkout page to complete payment with their card.
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": {
"ccard_key": "<ccard_key>",
"order_id": "<order_id>",
"amount": "<amount>",
"success_url": "<success_url>",
"error_url": "<error_url>",
"cancel_url": "<cancel_url>"
},
"name": "creditcard_create_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Payment amount in EUR (e.g. 10.50). | |
| language | No | Language for the checkout page (e.g. "pt", "en"). Defaults to "pt". | |
| order_id | Yes | Unique order identifier in your system (max 15 characters). | |
| ccard_key | Yes | ifthenpay Credit Card key. | |
| error_url | Yes | URL to redirect the customer if the payment fails. | |
| cancel_url | Yes | URL to redirect the customer if they cancel the payment. | |
| success_url | Yes | URL to redirect the customer after a successful payment. |