> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# Setup and one-time payments

> Integrate Google Pay with the Yuno SDK: create the checkout session, let the SDK show the button and the payment sheet, and process a one-time payment.

This guide covers how to integrate Google Pay™ with Yuno using the SDK. With this approach, Yuno's SDK manages the complete Google Pay experience: displaying the Google Pay button, presenting the payment sheet, and handling the payment token. You don't need to integrate directly with the Google Pay API.

> [!NOTE]
>
> Before implementing, review the [Google Pay requirements](https://docs.y.uno/docs/google-pay#requirements) and ensure Google Pay is available in your operating countries.

## Integration flow

1. Create a checkout session with Yuno.
2. Initialize Yuno's SDK in your app (Web, Android, or iOS).
3. The SDK displays the Google Pay button and handles the payment sheet.
4. The customer authorizes the payment through Google Pay.
5. Yuno receives the payment token and processes the transaction with your configured provider.
6. Monitor the payment status via [webhooks](https://docs.y.uno/docs/webhooks.md).

## Requirements

* A Yuno account with API credentials ([Dashboard](https://dashboard.y.uno/))
* A payment provider connection configured in the Yuno dashboard that supports Google Pay
* A routing rule that includes the Google Pay payment method
* Yuno SDK integrated in your app ([Web](https://docs.y.uno/docs/sdks/resources/references/web.md), [Android](https://docs.y.uno/docs/sdks/resources/references/android.md), or [iOS](https://docs.y.uno/docs/sdks/resources/references/ios.md))

## Integration steps

### Step 1: Create a checkout session

Use the [create checkout session](https://docs.y.uno/reference/checkout-sessions/create-checkout-session.md) endpoint to start a payment session:

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "country": "US",
  "customer_id": "customer-uuid",
  "merchant_order_id": "order-123",
  "payment_description": "Google Pay payment",
  "amount": {
    "currency": "USD",
    "value": 5000
  }
}
```

The response returns a `checkout_session` ID to initialize the SDK.

### Step 2: Initialize the SDK

Initialize Yuno's SDK with the checkout session. The SDK automatically detects available payment methods, including Google Pay, based on your dashboard configuration.

Refer to the SDK documentation for your platform:

* [Web SDK integration](https://docs.y.uno/docs/sdks/full-checkout/web-payments)
* [Android SDK integration](https://docs.y.uno/docs/sdks/full-checkout/android-payments)
* [iOS SDK integration](https://docs.y.uno/docs/sdks/full-checkout/ios-payments)

### Step 3: Customer completes payment

The SDK handles the rest. When the customer selects Google Pay:

1. The Google Pay payment sheet appears with the customer's saved cards.
2. The customer selects a card and authorizes the payment.
3. The SDK sends the encrypted payment token to Yuno.
4. Yuno processes the payment through your configured provider.

### Step 4: Handle the response

The SDK returns the payment result. You can also monitor payment status through [webhooks](https://docs.y.uno/docs/webhooks.md) for asynchronous confirmation.

## Requesting contact information

You can configure which fields the Google Pay payment sheet requests from the customer directly from the [Checkout Builder](https://docs.y.uno/docs/using-yuno/dashboard-overview/checkout-builder.md#required-fields). The available fields are:

* Email
* Phone
* Cardholder name
* Billing address
* Shipping address

When any of these fields are enabled as required in the Checkout Builder, the Google Pay payment sheet prompts the customer to provide that information before completing the payment.

> [!NOTE]
>
> This used to be configured at the connection level. It's now unified under Required Fields in the Checkout Builder, the same way it works for Apple Pay.

> [!NOTE]
>
> Cardholder name is disabled by default for Google Pay, unlike cards, where it's enabled by default. Enable it from the Checkout Builder if your integration needs it.

| Platform | Minimum version |
| - | - |
| Web | 1.8.0 |
| Android | 2.16.0 |

## Create a payment with the SDK workflow

If you need to call the payment API directly while using the SDK checkout flow, set the `workflow` to `SDK_CHECKOUT` and include the checkout session:

```json theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "account_id": "your-account-id",
  "description": "Google Pay via SDK",
  "merchant_order_id": "order-123",
  "country": "US",
  "amount": {
    "currency": "USD",
    "value": 5000
  },
  "checkout": {
    "session": "checkout-session-id"
  },
  "customer_payer": {
    "id": "customer-uuid",
    "email": "customer@example.com"
  },
  "payment_method": {
    "type": "GOOGLE_PAY"
  },
  "workflow": "SDK_CHECKOUT"
}
```

> [!WARNING]
>
> When integrating wallets like Google Pay, the `payment_method.type` field is required even when using the SDK workflow. Set it to `GOOGLE_PAY`.

## Enable and test Google Pay

To test Google Pay in sandbox:

1. Integrate [Yuno's SDK](https://docs.y.uno/docs/sdks/full-checkout/android-payments) into your app.
2. Create a Google test account and sign in to the [Google Pay Business Console](https://pay.google.com/business/console).
3. In the Google Pay Business Console, navigate to the API section and select **Create a Pass** to enable **Demo mode**.

![](https://mintcdn.com/yuno-3979e326/MTlogjS0_SlxtlJG/images/reference/google-pay-sdk-integration/image1.png?fit=max\&auto=format\&n=MTlogjS0_SlxtlJG\&q=85\&s=90097bd7c2ba76e08eaa63d6f551bde6)

4. Download the [Google Wallet App](https://play.google.com/store/apps/details?id=com.google.android.apps.walletnfcrel\&hl=en\&gl=US) on your test device.
5. Run through the payment flow to verify the integration works.

## Go live

After testing, request [Google Production Access](https://developers.google.com/pay/api/web/guides/test-and-deploy/request-prod-access) and contact your Technical Account Manager. The Yuno team will verify your configuration before going live.

## Next steps

* [Recurring payments](https://docs.y.uno/docs/wallets/google-pay/sdk-integration/recurring-payments.md). Customer-initiated and merchant-initiated transactions with the vaulted token.
* [Express checkout](https://docs.y.uno/docs/wallets/google-pay/sdk-integration/express-checkout.md). Order breakdown, shipping methods and shipping address updates on the Google Pay sheet (Android and Web).

## Related documentation

* [Google Pay overview](https://docs.y.uno/docs/google-pay)
* [Google Pay Direct integration](https://docs.y.uno/docs/wallets/google-pay/google-pay-direct-integration.md)
* [Google Pay via provider](https://docs.y.uno/docs/wallets/google-pay/integration-via-provider-google-pay.md)
* [Google Pay with PIX](https://docs.y.uno/docs/wallets/google-pay/google-pay-with-pix.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.