Giveasy for Tilda

Pay for an order with the store's gift certificate, with the remainder charged to a card automatically.

Giveasy is a gift certificate service and a technical payment gateway. The integration is added to a Tilda website through the «Custom payment gateway» option: the customer enters a certificate code, its balance covers part of the order, and the rest is paid by card in the store's own account.

Customer funds never reach Giveasy accounts. The payment is created and processed in the merchant's own YooKassa account through the official partner integration. Giveasy acts as a technical gateway and as the operator that keeps track of certificates; the part covered by a certificate is an offset of a previously paid advance.
Contents

Merchant setup

You need an active Giveasy project and a connected YooKassa account (for card settlement).

  1. In your Giveasy account open Project → Подключение (Connection) → «Оплата сертификатом в корзине» (Pay with a certificate in the cart) and copy the project ID and the secret key.
  2. Open your Tilda profile and enable participation in testing of new features (available on paid plans). The Giveasy template is currently visible to testing participants only.
  3. In Tilda: Site settings → Payment systems → Custom payment gateway, template Giveasy.
  4. Fill in the Giveasy project ID and Giveasy secret key fields with the values from your account. Currency: RUB, country: RU.
  5. Set the tax system and VAT rates of your cash register.
  6. Save the settings and publish the page with the shopping cart.

The notification URL does not need to be copied anywhere — Tilda passes it with every order automatically.

Required settings

SettingValueWhy
Payment method attribute (FFD) «Full settlement» or «Full prepayment» YooKassa rejects «Advance» — the payment will not go through
Add delivery to the list of products off With it off, the sum of the line items equals the cost of goods, and delivery is the remainder up to the order total. That is how the gateway knows delivery must not be paid with a certificate
Use the discounted price on (both for products and for the FFD array) Otherwise the sum of the line items will not match the order total when discounts or promo codes are applied

Recommended settings

What the customer sees

  1. In the cart they choose «Pay with Giveasy certificate».
  2. A certificate code field appears. Once the code is entered, the breakdown is shown right away:
Certificate GA-XXXX-XXXX                −3 000 ₽
Delivery (not covered by a certificate)    400 ₽
To pay by card                           1 400 ₽
  1. Clicking «Pay» opens the Giveasy payment page. If anything is left to pay, the customer proceeds to the card payment; if the certificate covers the order in full, the order is confirmed immediately.
  2. The store receives the order in Tilda with the standard «paid» status.

The order total in Tilda always stays complete — a certificate is a payment method, not a discount. This matters both for reporting and for the receipt.

Calculation rules

ValueHow it is calculated
GoodsSum of the order line items
DeliveryOrder total minus the cost of goods
Coverage baseCost of goods
Covered by certificateThe lesser of: certificate balance and coverage base
To pay by cardOrder total minus the amount covered by the certificate

Technical protocol

1. Payment request (Tilda → Giveasy)

The customer is redirected with a POST request (application/x-www-form-urlencoded) to:

POST https://giveasy.ru/tilda/pay
ParameterTypeDescription
shop_idstringGiveasy project ID
order_idstringOrder number in Tilda
amountnumberFull order total, delivery included
currencystringRUB
country, langstringRU, ru
descriptionstringOrder description
order_timestringOrder creation time
emailstringCustomer email
phonestringCustomer phone
customer_namestringCustomer name
notify_urlstringTilda address for the payment notification
itemsarrayOrder contents: index, name, quantity, price, sum. Products only, without delivery
receiptarrayReceipt data (FFD 1.05)
signaturestringRequest signature

Giveasy verifies the signature and the line item totals, shows the payment page and returns the customer to the store's success or failure page.

2. Signature

The values of all transmitted fields — except the signature itself, fields with an empty value and arrays (items, receipt, which are listed under «Exclude fields») — are sorted by field name and joined with the | separator. The resulting string is signed with HMAC-SHA256, using the project secret key as the key. The result is a lowercase hexadecimal string.

signature = hmac_sha256(
    "1000|RU|RUB|customer@example.com|ru|https://forms.tildacdn.com/...|123456|...",
    secret_key
)

The same algorithm and the same key are used to sign the payment notification.

3. Payment notification (Giveasy → Tilda)

Once the payment is confirmed, Giveasy sends a POST request to the notify_url from the original request:

ParameterDescription
order_idOrder number
amountFull order total (certificate + card payment)
statussuccess — payment confirmed
transaction_idPayment identifier
signatureNotification signature

Tilda replies with OK when the notification is processed and ERROR on failure. Any response other than OK triggers a retry.

Receipts (54-FZ)

The receipt is issued by the store's own cash register for the full order total. The part paid by card is reported as a cashless settlement, and the part covered by the certificate as an offset of a previously received prepayment. If the order is fully covered by a certificate, the receipt is registered by the store separately.

Accepting a certificate together with a card payment requires one cash register setting. YooKassa requires a receipt sent along with a payment to match that payment's amount. When a certificate is redeemed, the receipt covers the full order while the payment covers only the remainder — so they cannot be sent together. In YooKassa choose Settings → Online cash register → «Do not link receipt and payment», and in Giveasy (Project → Integrations → cash register) enable «Receipt is sent as a separate request». The payment is then created without a receipt, and the receipt is registered separately — for the whole order and with a correct advance offset.

Test mode

The integration settings include a test mode: orders are processed without charging real money and without spending the certificate balance. Use the TST currency and test certificates created in your Giveasy account.

Support

Integration questions: info@giveasy.ru
Merchant account: giveasy.ru/login