Developers

Payments API without the archaeology

Predictable REST resources, idempotency on every write, signed webhooks and a sandbox that fails the way production fails.

Start in 5 minutes Get sandbox keys

Quickstart

Authenticate, create a payment, listen for the webhook.

  • Authenticate with a secret key scoped to live or sandbox.
  • Create with an Idempotency-Key — never double-charge.
  • Listen to signed webhooks retried for 24 hours.
curl https://api.goopay.co.uk/v1/payments \
  -H "Authorization: Bearer sk_test_..." \
  -H "Idempotency-Key: ord_88421" \
  -d amount=4250 \
  -d currency=GBP \
  -d source=tok_visa \
  -d capture=true

Resources

Consistent list, retrieve, create — update and cancel where it makes sense.

Resource What it is Operations
/v1/paymentsAuthorisation and capturecreate · retrieve · capture · cancel
/v1/refundsFull or partial reversalcreate · retrieve · list
/v1/payment_linksShareable remote paymentcreate · retrieve · expire
/v1/checkout_sessionsHosted checkoutcreate · retrieve
/v1/branchesLocation with its own balancelist · retrieve · create
/v1/payoutsBalance to bankcreate · retrieve · list

Webhooks

HMAC-SHA256 over raw body + timestamp. Retried with backoff for 24 hours.

payment.succeededAuthorised and captured
payment.failedDeclined with issuer code
payment.refundedFully or partially reversed
payment_link.paidLink completed
payout.paidFunds reached the bank
dispute.openedChargeback raised

Sandbox & test cards

Build the decline path before go-live.

Card Result Use for
4242 4242 4242 4242ApprovedHappy path
4000 0000 0000 0002DeclinedGeneric decline
4000 0000 0000 32203DS challengeAuth flow

Ready to get to the good stuff?

Tell us how you take payments. We’ll get SoftPOS, branches and settlement live — fast.

Get started See pricing

Start accepting Mastercard, Maestro, Google Pay, Apple Pay, Samsung Pay, Discover and American Express

Mastercard Maestro Google Pay Apple Pay Samsung Pay Discover American Express