Skip to main content

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.

note

During configuration, use the following parameters:

{ 
"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

Order Request Body should contain following parameters:

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

config.google_pay.externalboolean

Pass the value true when initiating the operation using the Google Pay button on the Business Web Page.

config.google_pay.tokenstring

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.
TOKEN SAMPLE
{
  "google_pay_token": "{'signature':'MEQCIHFtDlqJcskQXbwyvJLZQqS1LzeFds3OPilG9VoYKoe6AiA/j3MnWYkc6wT6plqYzN/pOLw0fJNbDDoTiV9fBJj92g\\u003d\\u003d','intermediateSigningKey':{'signedKey':'{\\'key...vJLtzc8lmztk=='}'}"
}

Response

idstring

Order identifier.

statusstring

Order status.

order_detailsobject

Order details. Contains same data as payment details. The object is returned if payment process is completed without 3DS authentication.

_linksobject

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

_links.details.hrefstring

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

_links.redirect.hrefstring

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.
{
"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}"
}
}
}