Skip to main content
Glama
jpbester
by jpbester

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
pingA

Test connectivity to the PayFast API and verify credentials are valid

transaction.fetchC

Fetch details of a specific PayFast transaction by payment ID

transaction.historyB

Get PayFast transaction history with optional date range and pagination

transaction.chargeA

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

subscription.fetchC

Fetch details of a PayFast subscription by its token

subscription.pauseB

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

subscription.unpauseA

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

subscription.cancelA

Permanently cancel a PayFast subscription. This cannot be undone.

subscription.updateC

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

subscription.adhocC

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

creditcard.fetchC

Query credit card transaction details for a specific PayFast payment

refund.createC

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

refund.queryA

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.fetchA

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