Google Pay
 Specifics
 Integration scenarios
Ready-made solutions:
Manual integration: Payment in the app
 Payment in the app
In this section, we will describe the process of accepting a payment for those who integrate Google Pay API for Android independently. If you’re using the Yandex.Checkout’s mobile SDK, refer to the article on Android SDK. Manual integration of Google Pay API for Web is not available yet.
 Step 1. Obtain the payment data
Generate a Google Pay cryptogram (
paymentMethodToken
) on the user’s device by following the instructions on using Google Pay for Android.
Set the following tokenization parameters when creating the
PaymentDataRequest
object:
Tokenization parameterValue
typePAYMENT_METHOD_TOKENIZATION_TYPE_PAYMENT_GATEWAY
gatewayyandexcheckout
gatewayMerchantIdShop ID (
shopId
in the Merchant Profile)
 Step 2. Create a payment
Send a payment creation  request to Yandex.Checkout with the
google_pay
type, and the Google Pay cryptogram (
payment_method_token
).
Example of request
cURL
PHP
Python
curl https://payment.yandex.net/api/v3/payments \
  -X POST \
  -u <Shop ID>:<Secret Key> \
  -H 'Idempotence-Key: <Idempotence Key>' \
  -H 'Content-Type: application/json' \
  -d '{
        "amount": {
          "value": "2.00",
          "currency": "RUB"
        },
        "payment_method_data":{
          "type": "google_pay",
          "payment_method_token": "<paymentMethodToken>"
        },
        "description": "Order No. 72"
      }'
Example of a created payment object
JSON
{
  "id": "22f504f4-000f-5000-8000-10d80496bbca",
  "status": "waiting_for_capture",
  "paid": true,
  "amount": {
    "value": "2.00",
    "currency": "RUB"
  },
  "authorization_details": {
    "rrn": "1554373221511"
  },
  "created_at": "2018-08-02T11:55:33.562Z",
  "description": "Order No. 72",
  "expires_at": "2018-08-09T11:55:36.108Z",
  "metadata": {
    "ymapi_timestamp": "2018-06-07T18:17:50+03:00",
    "ymapi": "true"
    },
  "payment_method": {
    "type": "google_pay",
    "id": "22f504f4-000f-5000-8000-10d80496bbca",
    "saved": false
  },
  "recipient": {
    "account_id": "100001",
    "gateway_id": "1000001"
  },
  "refundable": false,
  "test": false
}
 See also
Android SDKPayment processDeclined paymentsPayment by 54-FZ