Payment links

Shareable URLs a sub-merchant creates to request a payment. Opening a link

presents the hosted checkout, which creates the payment intent — no code

required on the merchant side.

Platform-wide concepts (auth, idempotency, versioning, errors) live on the

reference index.

TypeBehavior
single_useFixed amount and reference; consumed on its first successful payment, refuses a second visit. The invoice.
reusableNo pre-set amount — the customer enters any amount at checkout. The "pay me" link.

POST /payment-links

Request:


POST /payment-links
Authorization: Bearer sk_test_...
Content-Type: application/json

{
  "type": "single_use",
  "amount": 2500,
  "reference": "inv-1"
}

Parameters:

NameTypeRequiredDescription
typesingle_use | reusableLink consumption mode
amountinteger (FJD cents)✅ for single_useFixed amount, consumed on first success
referencestringMerchant invoice ID

Response (200):


{
  "url": "https://checkout.transxact.io/..."
}

The url is the hosted checkout: it presents the shopper a vertical method

list (M-PAiSA, MyCash, card) and drives the payment in test or live mode. A

successful payment lands on a branded confirmation page.

Returns the sub-merchant's links.

Code examples:

LanguageExample
Pythontransxact.payment_links.create({"type": "single_use", "amount": 2500, "reference": "inv-1"})
Node.jsawait transxact.paymentLinks.create({ type: "single_use", amount: 2500, reference: "inv-1" })

Related: Payment intents — what the

checkout creates when a shopper pays a link.