# Google Pay™ on Business' Webpage
To add Google Pay™ button on your webpage, following steps are required.

First your webpage should be compliant with Google's requirements.
Since Google Pay button is added to your own webpage, instead of Bank of Georgia's, you need to configure the environment independently. For more information visit [Google's configuration page](https://support.google.com/pay/business/answer/7684271?hl=en).

:::note
During configuration, use the following parameters:

```json
{
    "type": "PAYMENT_GATEWAY",
    "parameters": {
        "gateway": "georgiancard",
        "gatewayMerchantId": "BCR2DN4TXKPITITV",
    }
}

```

:::

After these steps you can make Bank payments through Google Pay button on your page.
For creating order see [Standard Process - Order Request](https://api.bog.ge/docs/en/payments/standard-process/create-order)

Order Request [`Body`](https://api.bog.ge/docs/en/payments/standard-process/create-order#body-parameters) should contain following parameters:

```json
"payment_method": ["google_pay"],
"config": {
    "google_pay": {
        "external": true,
        "google_pay_token": "{token}"
    }
}
```

- `config.google_pay.external` — boolean
  Pass the value true when initiating the operation using the Google Pay button on the Business Web Page.

- `config.google_pay.token` — string
  Full string representing the encrypted Google Pay payment details. It must include all nested fields as received from the Google Pay SDK without modification or truncation.

{{
    "google_pay_token": "{\'signature\':\'MEQCIHFtDlqJcskQXbwyvJLZQqS1LzeFds3OPilG9VoYKoe6AiA/j3MnWYkc6wT6plqYzN/pOLw0fJNbDDoTiV9fBJj92g\\u003d\\u003d\',\'intermediateSigningKey\':{\'signedKey\':\'{\\\'keyValue\\\':\\\'MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEnU1Do/xUEVVpjx5FXghsVh/siuHraLfqlfo7Hzt5weEImxxFxNzkUt2QZ+J4G5ihPoLmtA4z6Q1OGUmMo/+nvg\\\\u003d\\\\u003d\\\',\\\'keyExpiration\\\':\\\'1729068602000\\\'}\',\'signatures\':[\'MEUCIQCnUz4WvOz1Yg/oykSTgnFS2xyXZo6EH4/ZV2EiFwguPAIgS6rOk2dnM9gwpbOrfOWe6U1RI8Jt6IuBkF9lReCzw7w\\u003d\']},\'protocolVersion\':\'ECv2\',\'signedMessage\':\'{\\\'encryptedMessage\\\':\\\'sfd8Jk/Ky21GjWrHRyD90sm8O/Jzv7EieX10nzlP/ZVns4XuY67bMwloqpWl+35bGrU7EvGy54noxN0UJSvRAGjHro+u7jWxWmH6xVoSJuvXlmSStzBxgJHkFRznxuKcQ/PiFrvk1gO5bnrkYw5ZG/5mMJApNnT/5OrakITD61G3rNJvzpQEGepbC7C5iWPMRsh/YUwzZLBmfvp8QlQa5BTpydPHMFdJ2giIH/O0x5x7XJ9NR6ZBz5WfhTKaZnwKke+OwNNEse+OlFBO9nKdgmuhI9dOisKTHrbGPmd9Be9s3WSyEY1PVcZ9lKHrhbNPsKETRE7Kz1i1nOLjoNBq/xYuZIjvdiBJQME9TbwP5bnOsQ25v8ZXmAXz/fMLOZ/3RHOG6YuIwWiUPrFNbCqPxloNtgnPaOge48f6AzgKIBlppl+jDcALc/5JAWg5JUlZuTrLrnxBQ9AoTohUguKJqGXcHdY6tFfSKUp74pC2qXig+thK8slFZXJvdkfR3ocTlQUvIwzAhjww7Pw7On+LQoObGPs7AP8BZfnGyxMmqqNmL1iv0OUoazUSNuwFPTsdb5poKPslE4gIfBWj6HuxDZuF1TiNsK6HM1mTwzmcEFCvqBoD7vTjaNBAXHtbgaqZOGbvQlpmL9DZZLm+IqlbFw==\',\'ephemeralPublicKey\':\'BH8rPohRm5PX1b7j3yJlGoOYmbCKsjzoYc1qrPHQOiNqD9Nr/YFJH0Dxo59vSmJ/saZTleDz7zQr3kUNNwe1dQ3Q==\',\'tag\':\'u/oNSfxGFSyoSZJfY7A2dJp7aA9pvTOvJLtzc8lmztk==\'}\'}"
}}

### Response

- `id` — string
  Order identifier.

- `status` — string
  Order status.

- `order_details` — object

  Order details. Contains same data as [payment details](https://api.bog.ge/docs/en/payments/standard-process/get-payment-details#response). The object is returned if payment process is completed without 3DS authentication.

- `_links` — object

  The web resource addresses are used in the further stages of the payment process. At the moment following resources are returned:

  - `_links.details.href` — string

    The address of the payment details can be used to obtain information on the online payment.

  - `_links.redirect.href` — string

    The web page address to which a customer should be redirected for 3DS authentication. The parameter is returned if the client has 3DS authentication turned on.

**RESPONSE**

```json
{
    "id": "{order_id}",
    "status": "completed",
    "order_details": {...},
    "_links": {
        "details": {
            "href": "https://api.bog.ge/payments/v1/receipt/{order_id}"
        },
        "redirect": {
            "href": "https://payment.bog.ge/api/3ds/post-form?fieldName={field_name}&fieldValue={field_value}&baseUrl={base_url}"
        }
    }
}
```
