# Tilda

You can familiarize yourself with the integration steps and website requirements [here](https://docs.maibmerchants.md/e-commerce/integration-steps-and-requirements).

To test the integration, you will need access to a Test Project (*Project ID / Project Secret / Signature Key*). For this, please submit a request to the email address: <ecom@maib.md>.

To process real payments, you must have the e-commerce contract signed and complete at least one successful transaction using the Test Project data and test [card details](#user-content-fn-1)[^1].

After signing the contract, you will receive access to the **maibmerchants** platform and be able to activate the Production Project.

### Project activation in maibmerchants

<div data-full-width="true"><figure><img src="https://2209855812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPDIM0OxcpQbz9TdR5jZJ%2Fuploads%2Fus3sjPWY100dzuxJ6Ohr%2F1.PNG?alt=media&#x26;token=7e3ba202-31c5-4598-80fb-31f42454f460" alt=""><figcaption><p>1</p></figcaption></figure> <figure><img src="https://2209855812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPDIM0OxcpQbz9TdR5jZJ%2Fuploads%2FmgnoUi4UiavEEMvCNsd5%2F2.PNG?alt=media&#x26;token=1d8006c9-7980-4bac-bcb8-8e6c74414a59" alt=""><figcaption><p>2</p></figcaption></figure> <figure><img src="https://2209855812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPDIM0OxcpQbz9TdR5jZJ%2Fuploads%2FWH0MTvwcU4CztpzelYXo%2F3.PNG?alt=media&#x26;token=c8457a49-0deb-4bd0-864d-0c461cca0066" alt=""><figcaption><p>3</p></figcaption></figure></div>

To activate the Project (Test or Production) fill in all the fields and access the ***Activate*** button.

**Domain** - enter the domain of the Tilda website (e.g. *shop.tilda.ws* or *domain.com*)

**IP** - enter: **\******.\******.\******.\****

**Platform** - select Tilda&#x20;

**Callback URL** - enter the link from the CALLBACK URL field in the maib payment method settings on the Tilda platform.&#x20;

**Ok URL** - enter the link to the page where the buyer will be redirected if the payment was successful. Create a page on the Tilda website (e.g. *domain.md/success*) that contains the following text: "*The payment was made successfully!*".&#x20;

**Fail URL** - enter the link to the page where the buyer will be redirected if the payment has failed. Create a page on the Tilda website (e.g. *domain.md/fail*) that contains the following text: "*Payment failed! Contact us for more details.*"

Upon successful Project Activation, the ***Project Secret*** and ***Signature Key*** will be available, which you must copy into the respective fields of the **maib** payment method settings in Tilda.

### Tilda Settings

<div data-full-width="true"><figure><img src="https://2209855812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPDIM0OxcpQbz9TdR5jZJ%2Fuploads%2FgOblYL6CH4slJJAMdhp3%2F1.PNG?alt=media&#x26;token=b378ea31-3ae8-4b63-8eb1-c8495e179ba8" alt=""><figcaption><p>1</p></figcaption></figure> <figure><img src="https://2209855812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPDIM0OxcpQbz9TdR5jZJ%2Fuploads%2F77v6NYnWg2dUXX8XOERB%2F2.PNG?alt=media&#x26;token=67fd0804-4ffd-42de-9c9e-1a6deb86f99d" alt=""><figcaption><p>2</p></figcaption></figure> <figure><img src="https://2209855812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPDIM0OxcpQbz9TdR5jZJ%2Fuploads%2FaIBr2fycG55tN6H6wIYd%2F3.PNG?alt=media&#x26;token=b7c99f7c-e7a9-4edc-a27d-1ad794265764" alt=""><figcaption><p>3</p></figcaption></figure> <figure><img src="https://2209855812-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPDIM0OxcpQbz9TdR5jZJ%2Fuploads%2FMSVfOd9jECVw1h1kpts6%2F4.PNG?alt=media&#x26;token=64d9d85c-008a-4d40-8b3e-8b63f6c7e421" alt=""><figcaption><p>4</p></figcaption></figure></div>

Log in to your Tilda account and go to *Site Settings -> Payment Systems -> Custom Payment Gateway -> Maib.*&#x20;

Fill in all the fields and save the data:

**PROJECT ID** - Project ID in maibmerchants&#x20;

**SIGNATURE KEY** - Signature Key from Project in maibmerchants. It is available upon activation of the Project.&#x20;

**PROJECT SECRET** - Project Secret from Project in maibmerchants. It is available upon activation of the Project.&#x20;

**CALLBACK URL** - copy this link into the respective field in Project in maibmerchants.&#x20;

**SUCCESS URL** - indicate the link to the page where the buyer will be redirected if the payment was successful. Must match the Success URL field in the Project in maibmerchants. Create a page on the Tilda website (e.g. *domain.md/success*) that contains the following text: "*The payment was made successfully!*".&#x20;

**FAILURE URL** - indicate the link to the page where the buyer will be redirected if the payment has failed. Must match the Fail URL field in the Project in maibmerchants. Create a page on the Tilda website (eg domain.md/fail) that contains the following text: "*Payment failed! Contact us for more details.*"&#x20;

**CURRENCY** - choose the currency of payments on the website (MDL/EUR/USD). It must match the Project currency in maibmerchants and the currency set in Tilda (*Site Settings - Payment Systems*).&#x20;

For Test Project choose MDL.&#x20;

**COUNTRY** - choose MD.&#x20;

**LANGUAGE** - choose the language (RO/EN/RU) in which the ***maib checkout page*** will be displayed, where the buyer will enter the card data or pay with Google Pay / Apple Pay. For the Test Project it is only possible to pay by card.&#x20;

**TITLE** - the name of the **maib** payment method, which the buyer will see at checkout if several payment methods are active on the website.

**DESCRIPTION -** this field should not contain " " or << >>. For example: *Online Painting Course*&#x20;

[^1]: Card holder: Test Test

    Card number: 5102180060101124

    Exp. date: 06/28

    CVV: 760
