Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| BAYARCASH_SANDBOX | No | Use sandbox (true) or production (false) | true |
| BAYARCASH_API_TOKEN | Yes | Your API token from console.bayar.cash | |
| BAYARCASH_API_SECRET_KEY | Yes | Your API secret key |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| create_payment_intent | Create a new payment intent for processing payments through Bayarcash. Returns payment intent ID in response. WORKFLOW: 1) If user did not provide payer_email, call list_transactions (per_page=1) to get latest email and ask: "Use email from last payment: {email}?" 2) If user did not provide portal_key, call get_portals and ask user to select. 3) If user did not specify payment channel, call get_payment_channels and ask user to select. 4) Ask if they want to provide phone number (optional). IMPORTANT: Store the returned "id" field (e.g., pi_pGwAaq) to check payment status later. |
| get_payment_intent | Get payment intent details and status by payment intent ID. Returns comprehensive payment history including all attempts. |
| get_transaction | Get transaction details by transaction ID |
| get_transaction_by_order | Get transaction details by order number |
| list_transactions | List all transactions with optional filters. If you have payer_email from previous payment creation, ask user: "Filter by email from last payment: {email}?" |
| get_portals | Get list of available payment portals |
| get_payment_channels | Get list of available payment channels |
| get_fpx_banks | Get list of FPX banks for online banking payments |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Available Payment Portals | List of all available payment portals and their configurations |
| Payment Channels | List of all available payment channels across all portals |
| FPX Banks | List of FPX banks available for online banking payments |