GetPay

Payment API

A payment API built for Armenian businesses

Create a payment from your server, redirect the customer to the hosted page, and get a webhook when they pay. GetPay handles communication with the bank and sends the payment result to your system.

You need your own domain for the system to work, because banks require it.

You do not need bank credentials to test with sandbox keys.

curl https://api.yourdomain.am/api/v1/payment-links \
  -H "Authorization: Bearer $GETPAY_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "merchant_reference": "1001",
    "success_url": "https://yourdomain.am/thanks",
    "line_items": [
      { "name": "Ceramic mug",
        "unit_amount": 1500000, "quantity": 2 },
      { "name": "Gift box", "unit_amount": 1500000 }
    ]
  }'

Three steps to a working integration

You don't build a payment form or talk to a bank directly. The whole flow fits in a few API calls. A redirect to your success page is not a payment confirmation.

  • POST /payment-links returns an id and a url
  • Redirect the customer to that url
  • On the payment_link.completed webhook, first verify the signature (GetPay-Signature), then check that status is complete, payment_status is paid and amount_total matches your order, and skip any GetPay-Event-Id you have already processed. Only then fulfil the order

A sandbox for testing payment scenarios

With your sk_sandbox_ key, pressing Pay opens a test page where you choose how the payment ends. Use sandbox mode to test webhook handling, redirects, declined payments and refunds without moving real money.

  • Test a success, a decline, an expired card or a 3-D Secure failure
  • Test the scenario where a customer closes their browser after paying
  • Switch to your sk_live_ key when you are ready

The details developers ask about

The API uses JSON over HTTPS on the API subdomain of your own domain (api.yourdomain.am), with amounts in the currency's minor units and times in UTC.

  • Signed webhooks with a whsec_ secret and event IDs to ignore duplicates
  • Refunds and reversals through POST /payments/{id}/refund and /reverse
  • Your order number on every link, payment and webhook through merchant_reference

Frequently asked questions

How do I integrate the GetPay API?

Connect your domain, get your keys from the dashboard, create a payment link from your server and handle the webhook. The integration guide covers each step with examples.

Do I need PCI DSS compliance to use the API?

Your server never receives card details: the customer enters them on the bank's secure page. Ask your bank or auditor which requirements apply to your business.

How do I know a payment really succeeded?

Verify the webhook signature first, or fetch the link from your server. Fulfil the order only when the link's status is complete, its payment status is paid and the amount matches your order, and never process the same event twice. A redirect to your success page is not a payment confirmation.

Which languages and frameworks does it work with?

Any that can send HTTPS requests and receive webhooks, because it is a plain REST API with JSON.

Ready to take payments?

Sign up and start testing today. If you have questions, call or write to us.

Phone+374 96 030036 Supportsupport@getpay.am