Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_LEVELNoOptional: Logging level (debug, info, warn, error).info
PAYFAST_PASSPHRASEYesThe passphrase generated in your PayFast security settings.
PAYFAST_ENVIRONMENTYesThe environment to use: 'sandbox' for testing or 'production' for live transactions.sandbox
PAYFAST_MERCHANT_IDYesYour PayFast Merchant ID, found in Settings > Integration.
PAYFAST_MERCHANT_KEYYesYour PayFast Merchant Key, found in Settings > Integration.

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
ping

Test connectivity to the PayFast API and verify credentials are valid

transaction.fetch

Fetch details of a specific PayFast transaction by payment ID

transaction.history

Get PayFast transaction history with optional date range and pagination

transaction.charge

Process a charge on a tokenized card. This creates a real payment. Requires confirmation.

subscription.fetch

Fetch details of a PayFast subscription by its token

subscription.pause

Pause a PayFast subscription for a specified number of billing cycles. This stops charges temporarily.

subscription.unpause

Resume a previously paused PayFast subscription. Billing will resume on the next cycle.

subscription.cancel

Permanently cancel a PayFast subscription. This cannot be undone.

subscription.update

Update a PayFast subscription's parameters (amount, cycles, frequency, or run date)

subscription.adhoc

Process an ad-hoc (one-time) charge on an existing PayFast subscription

creditcard.fetch

Query credit card transaction details for a specific PayFast payment

refund.create

Create a refund for a PayFast transaction. This will return money to the customer's original payment method.

refund.query

Query refund availability for a transaction BEFORE creating a refund. Returns available amounts, refund methods (credit card or bank payout), and required parameters. Use this first to check if a refund is possible.

refund.fetch

Fetch refund transaction history and available balance for a payment that has ALREADY been refunded. Returns 404 if no refund exists yet — use refund.query first to check availability.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

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/jpbester/payfast-mcp'

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