Skip to main content

Tilda

GlobalPay can be connected to a Tilda website through a third-party payment provider integration. Once connected, customers can pay for orders with bank cards directly on your site.


Requirements​

  • An active Tilda site (Business plan or higher — required for Zero Block and form access)
  • GlobalPay credentials:
    • Service ID
    • OAuth Username
    • OAuth Password

Contact GlobalPay support to obtain credentials:

Telegram: @Globalpay_merchants_support


Integration approach​

Tilda does not support direct connection of arbitrary payment providers through its official interface. GlobalPay integration is implemented via Zero Block (embedded HTML/JS widget) or Tilda API to pass order data to your backend, which then calls the GlobalPay API.

General flow​

Customer → Tilda Form → Your Backend → GlobalPay API → GlobalPay Checkout Page

The recommended approach is Checkout: your backend creates a payment link via GlobalPay API, and the customer is redirected to GlobalPay's hosted payment page.


Step 1: Set up the form in Tilda​

  1. Open the page in the Tilda editor.
  2. Add a form block (e.g., Forms → Form or Zero Block).
  3. Add the required fields: name, phone, email, amount (or fix the amount on the backend).
  4. In the form settings, set After Submit Action → Send to Webhook and enter your backend URL.

Alternative: use Tilda's "Send form data to URL" setting — the form will send a POST request with the data to your server.


Your backend receives data from the Tilda form and calls the GlobalPay Checkout API.

1. Get an access token​

POST /v1/merchant/auth
Content-Type: application/json

{
"username": "YOUR_OAUTH_USERNAME",
"password": "YOUR_OAUTH_PASSWORD"
}

Response:

{
"accessToken": "eyJ...",
"refreshToken": "eyJ..."
}
POST /v1/user-service-tokens
Authorization: Bearer {accessToken}
Content-Type: application/json

{
"serviceId": "YOUR_SERVICE_ID",
"amount": 1000000,
"currency": "UZS",
"externalId": "order-12345",
"returnUrl": "https://your-tilda-site.com/success",
"failUrl": "https://your-tilda-site.com/fail",
"description": "Payment for order #12345"
}

Amounts are specified in tiyin (1 UZS = 100 tiyin). For example, 10,000 UZS = 1000000.

Response:

{
"paymentUrl": "https://checkout.globalpay.uz/pay/TOKEN"
}

3. Redirect the customer​

Return paymentUrl to the frontend and redirect the customer:

window.location.href = data.paymentUrl;

Step 3: Handle the result​

After payment, GlobalPay redirects the customer to returnUrl (success) or failUrl (failure).

To get the actual payment status:

GET /v1/payment/{id}
Authorization: Bearer {accessToken}

For automatic notifications, configure a Webhook in GlobalPay service settings — after payment completion, a POST with the result will be sent to your URL.


Testing​

Use the GlobalPay Sandbox environment. Request test credentials from support and use the following test cards:

Card typeNumberExpiryCVV
Uzcard8600 0001 0156 080412/27—
HUMO9860 0901 0156 080401/27—
Visa4111 1111 1111 111112/27123
Mastercard5555 5555 5555 444412/27123

Support​

Telegram: @Globalpay_merchants_support