# Google Pay™

**About Google Pay**™

**Google Pay**™ is a fast and simple payment method that allows you to make card payments without entering card details for each payment. The card data is safely stored by **Google**™. This payment method is available for all devices (mobile phones and computers), regardless of the operating system and web browser.

Unitpay gives you a way to easily add it on your checkout page, making it more convenient for your clients to pay on your website.

As a merchant, you can use **Google Pay**™ via **Unitpay** checkout page or via **Google Pay**™ **API.**

#### Integration via **Unitpay** checkout page

**Google Pay**™ via **Unitpay** checkout page will be available for you after integration.

[Here ](https://help.unitpay.ru/first_steps)you can read about first steps of integration (registration, adding a project).

[Here ](https://help.unitpay.ru/payments)you can read about work with payments.

You can check the availability of accepting payments via **Google Pay**™ on the settings page of your project in **Unitpay**. As shown in the picture below:

![](https://244174165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9Y_k8Gr-WxeECFRelw%2F-Mjcp-n2u294Kf_7GXW1%2F-MjcrgKpKZKdGYDIdDpI%2Fimage.png?alt=media\&token=44564a20-503f-4fa0-8e9b-53892253fdf1)

&#x20;The payer will see a page with the name of product, prices and **Google Pay**™ \*\*\*\*button:

![](https://244174165-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M9Y_k8Gr-WxeECFRelw%2F-Mjcp-n2u294Kf_7GXW1%2F-MjcrmvF0oG7DjIdMJx7%2Fimage.png?alt=media\&token=08cef4df-4aa4-429b-b601-e6892da077fb)

#### **Connection with Google Pay API**

**Before you start**

* You should register with **Google Pay**™ **API** to proceed with this integration option.
* Your website should use HTTPS and support TLS protocol.
* You should be registered with **Unitpay** as a merchant.

**Instruction**

Firstly please review the following documentation in order to get familiar with the integration process:

* API documentation [for mobile application](https://developers.google.com/pay/api/android) and [for website](https://developers.google.com/pay/api/web)
* Brand guidelines [for mobile application](https://developers.google.com/pay/api/android/guides/brand-guidelines) and [for website](https://developers.google.com/pay/api/web/guides/brand-guidelines)

The `gateway` parameter in the script should have the constant value of `unitpay`.

The value of the `gatewayMerchantId` parameter should be the identifier of the payment point where the order is made.

```
"gateway": "unitpay"
"gatewayMerchantId": "YOUR_GATEWAY_MERCHANT_ID"
```

In response, Google shall return the `PaymentData` item, and the field `paymentMethodData.tokenizationData.token` shall contain a safely encrypted **Google Pay™** Token (a string of characters).

Supported payment systems:

```
"allowedCardNetworks": [
    "MASTERCARD",
    "VISA"
]
```

Supported authorization methods:

```
"allowedAuthMethods": [
    "PAN_ONLY",
    "CRYPTOGRAM_3DS"
]
```

Billing request parameter `BillingAddressParameters`is not used.

**Charging**

To charge the payment card stored under **Google Pay™**, in the direct method request fill in `paymentType` and `token` with the following values:

* `"paymentType": "googlepay"`
* `"token": "${paymentMethodData.tokenizationData.token}"`

Further processing of the request is subject to the standard payment process.

{% hint style="info" %} If the card supports 3DS for PAN\_ONLY credentials, you will receive a redirectUrl in response, where you need to redirect the payer. {% endhint %}

Please note that it may be necessary to handle a redirect of the request to the 3D Secure authentication page.

* `"redirectUrl": "https://{url-for-redirect}..."`

After creating the payment, you will receive `paymentId`, by which you can [check](https://help.unitpay.ru/v/master/payments/payment-info) the status of the payment.

**Google Pay**™ documentation:

* [Google Pay for payments on websites](https://developers.google.com/pay/api/web/)
* [Integration checklist](https://developers.google.com/pay/api/web/guides/test-and-deploy/integration-checklist)
* [Brand guidelines](https://developers.google.com/pay/api/web/guides/brand-guidelines)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.unitpay.ru/en/google-pay.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
