Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
BAYARCASH_SANDBOXNoUse sandbox (true) or production (false)true
BAYARCASH_API_TOKENYesYour API token from console.bayar.cash
BAYARCASH_API_SECRET_KEYYesYour API secret key

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Available Payment PortalsList of all available payment portals and their configurations
Payment ChannelsList of all available payment channels across all portals
FPX BanksList of FPX banks available for online banking payments

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/khairulimran-97/bayarcash-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server