payware_generate_code_example
Generate signed Payware API request code examples in Python, Node.js, PHP, Java, C#, or cURL, including RS256 JWT authentication and content SHA-256 handling.
Instructions
[Merchant] Generate a complete program for one payware API call, or the JWT helper, in python, nodejs, php, java, csharp, curl. Each program signs its request as payware requires (RS256 JWT with contentSha256 for a body, on behalf of a merchant for an ISV) and calls the real route. finalize_transaction (payment institutions) is the whole institution flow: process, EXECUTING immediately before money moves, then CONFIRMED once the Merchant Leg has completed, or FAILED.
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": {
"operation": "<operation>"
},
"name": "payware_generate_code_example"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | python (requests, PyJWT), nodejs (axios, jsonwebtoken), php (cURL, firebase/php-jwt), java (Java 11 HttpClient, no dependencies), csharp (.NET 6 HttpClient, no dependencies) or curl (curl and openssl). Default python. | |
| operation | Yes | The operation. Transactions: create_transaction, get_transaction_status, process_transaction, cancel_transaction, get_transaction_history, and for payment_institution finalize_transaction (process, EXECUTING, then CONFIRMED or FAILED, all on /api/transactions/{transactionId}). Products and audio (merchant, isv): create_product, get_product, list_products, update_product, delete_product, register_audio, get_audios, get_audio, update_audio, delete_audio. OAuth2 (isv): obtain_token, get_token_info, rotate_token. Reports (production only): list_reports, generate_report, get_report_status, export_report. authentication: the JWT helper on its own. | |
| partner_type | No | merchant, isv (calls on behalf of a merchant, and the OAuth2 token endpoints) or payment_institution. Decides which operations exist and how the JWT is signed. Default merchant. | |
| include_comments | No | true (default): the program with comments, inside a page that names the route and what to know about it. false: the program alone. | |
| include_error_handling | No | true (default): report a failed status or a network error. false: the shortest program. |