GATEWAY Payment API v2.0.0
Stage · sandbox acquirers

One API for cards, Apple Pay and Google Pay, secured by 3-D Secure.

LINK4PAY Payment Gateway is a fast REST API with Bearer authentication: create a payment, send your customer to the hosted checkout (card · Apple Pay · Google Pay) or pass the card yourself, then capture, refund or void. Saved cards, webhooks and idempotent requests built in.

Version 2.0.0 OpenAPI 3.1
Endpoints — across all tags
Status
Checking…
GET /health

Hosted checkout

One lightweight page with Card, Apple Pay and Google Pay. Create a payment, redirect, receive the result.

3-D Secure 2

Every customer-initiated card payment is authenticated — frictionless when the issuer allows, challenge otherwise.

Capture · Refund · Void

Authorize now and capture later, refund fully or partially, cancel authorizations — one call each.

Tokens & webhooks

Cards stored encrypted with AWS KMS, merchant initiated payments, signed webhooks and idempotent requests.

Get started

Your first payment in two calls.

Exchange your apiKey / apiSecret for an access token, create a payment without paymentMethod and send the customer to the returned checkoutUrl. The full reference with every field, response and example is below.

# 1. access token (1 hour)
TOKEN=$(curl -s 'https://pgt.link4pay.com/v2/auth/token' \
  -H 'Content-Type: application/json' \
  -d '{"apiKey": "YOUR_API_KEY", "apiSecret": "YOUR_API_SECRET"}' | jq -r .access_token)

# 2. payment with the hosted checkout (card, Apple Pay, Google Pay)
curl -s 'https://pgt.link4pay.com/v2/payments' \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "amount": "12.00",
    "currency": "EUR",
    "reference": "order-00001",
    "description": "Order #00001",
    "customer": {"id": "cust-42", "email": "[email protected]"},
    "returnUrl": "https://www.google.com/search?q=payment+return",
    "webhookUrl": "https://www.google.com/search?q=webhook"
  }'
# -> {"reference": "order-00001", "status": "pending", "checkoutUrl": "https://pgt.link4pay.com/checkout/…", ...}
4111 1010 1111 1003 Stage test card: any name, any future date, CVV 987 — frictionless success. The full table (success · fail · challenge) is in the Testing section below. Call the API from your server only — never expose apiSecret or access tokens in a browser or mobile app.