> ## 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.

# Apple Pay & Google Pay enhanced experience

> Enable a seamless wallet experience on VTEX checkout and unlock Apple Pay installments.

The Apple Pay & Google Pay enhanced experience is an optional add-on for stores already using the Yuno VTEX plugin. It improves the checkout experience for shoppers by removing an intermediate screen between the VTEX checkout and the device's native wallet sheet, which is known to reduce conversion on wallet payments.

<div className="grid grid-cols-2 gap-4">
  <Frame caption="Default experience (with intermediate screen)">
    <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/image-20260422-170119.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=32c0b3a72e19dd8dcf254d05610885f1" alt="Default wallet experience" width="692" height="391" data-path="images/plugins/vtex/image-20260422-170119.png" />
  </Frame>

  <Frame caption="Enhanced experience (direct native sheet)">
    <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/image-20260422-170132.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=78db6548835bd4c98618e7596722dd89" alt="Enhanced wallet experience" width="684" height="323" data-path="images/plugins/vtex/image-20260422-170132.png" />
  </Frame>
</div>

## What it is

By default, when a shopper selects Apple Pay or Google Pay, the Yuno Payment App opens an intermediate screen inside the VTEX checkout before the device's native confirmation sheet (Face ID, fingerprint, or PIN) appears.

The **enhanced experience** removes that intermediate screen: the Apple Pay and Google Pay buttons appear **directly inside the VTEX checkout payment step**, and tapping a button opens the device's native sheet immediately.

This integration also unlocks the optional **Apple Pay installments** feature.

## How it works

When a shopper reaches the checkout, the Yuno SDK quietly prepares a payment session in the background. By the time they reach the payment step, the Apple Pay and Google Pay buttons appear instantly.

* **Fast confirmation**: Tapping a button opens the native wallet sheet immediately.
* **Auto-recalculation**: If the shopper changes their cart (adds an item, applies a coupon, changes shipping), the SDK recalculates the session automatically.
* **Error handling**: If a payment fails, the shopper can try again without reloading the page.

***

## Integration guide

Setting up the enhanced experience involves adding a small JavaScript snippet to your VTEX checkout and finding the values to fill into it.

<Steps>
  <Step title="Add the snippet to your VTEX checkout">
    The snippet is added to your store's `checkout6-custom.js` file from the VTEX dashboard.

    1. In the **VTEX dashboard**, search for **Checkout** in the top bar.

    <Frame>
      <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/vtex-checkout-snippet-1.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=1c91cd38a8d5e044c3e3260e86e02541" alt="VTEX Checkout settings" width="1913" height="926" data-path="images/plugins/vtex/vtex-checkout-snippet-1.png" />
    </Frame>

    2. Select the website your store uses (usually **Default**).

    <Frame>
      <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/vtex-checkout-snippet-2.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=3b5d4da3eb2890fc2b4beb9665f90808" alt="Select website" width="1913" height="926" data-path="images/plugins/vtex/vtex-checkout-snippet-2.png" />
    </Frame>

    3. Open the **Code** tab and select `checkout6-custom.js` from the file list on the right.

    <Frame>
      <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/vtex-checkout-snippet-3.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=5f0c09f4c74f06d5a106db79204ee3af" alt="Open checkout6-custom.js" width="1913" height="926" data-path="images/plugins/vtex/vtex-checkout-snippet-3.png" />
    </Frame>

    4. Add the snippet below at the end of the file, then click **Save**.

    <Frame>
      <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/vtex-checkout-snippet-4.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=5eafbaa0f7d8528278e59ab45b11076c" alt="Save snippet" width="1913" height="926" data-path="images/plugins/vtex/vtex-checkout-snippet-4.png" />
    </Frame>

    ```javascript theme={"theme":{"light":"github-dark","dark":"github-dark"}}
    (function () {
      window.addEventListener('yuno-sdk-vtex-io-ready', function (event) {
        var YunoVTEXIO = event.detail.YunoVTEXIO;
        YunoVTEXIO.initialConfiguration({
          paymentMethods: ['Google Pay', 'Apple Pay'],
          affiliationName: 'YOUR_AFFILIATION_NAME'
        });
      });

      var script = document.createElement('script');
      script.src = 'https://sdk-web-vtex-io.y.uno/v1/main.js';
      document.head.appendChild(script);
    })();
    ```

    <Note>
      Replace `YOUR_AFFILIATION_NAME` with the affiliation name from your Yuno provider configuration. In `paymentMethods`, list the wallets you want to enable — `'Apple Pay'`, `'Google Pay'`, or both.
    </Note>
  </Step>

  <Step title="Find the affiliation name">
    The `affiliationName` value is the same one you set when configuring Yuno as a payment provider.

    1. In the **VTEX dashboard** search bar, type `providers` and select the **Providers** result.

    <Frame>
      <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/vtex-checkout-affiliation-1.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=349fbce5142242452997f8e8d2089a84" alt="VTEX Providers" width="1913" height="926" data-path="images/plugins/vtex/vtex-checkout-affiliation-1.png" />
    </Frame>

    2. Find the Yuno provider configured for this store and open it.

    <Frame>
      <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/vtex-checkout-affiliation-2.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=40b45cc111f4fdb6d56dfab6294f765b" alt="Select Yuno provider" width="1913" height="926" data-path="images/plugins/vtex/vtex-checkout-affiliation-2.png" />
    </Frame>

    3. In the provider's detail view, copy the value from the **Affiliation Name** field and use it in the snippet.

    <Frame>
      <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/vtex-checkout-affiliation-3.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=0581aea80c9bb8ef8fb7f591892d8e96" alt="Copy affiliation name" width="1913" height="926" data-path="images/plugins/vtex/vtex-checkout-affiliation-3.png" />
    </Frame>
  </Step>
</Steps>

After saving the snippet, the enhanced experience is live. Apple Pay and Google Pay buttons will
appear directly inside the VTEX checkout payment step

***

## Apple Pay installments

Apple Pay installments is an optional feature within the enhanced experience that lets shoppers split their purchase into installments.

### What shoppers see

Once enabled, an **Installments** selector appears above the Apple Pay button. Tapping it opens a panel listing every installment option.

<div className="grid grid-cols-2 gap-4">
  <Frame caption="Installment selector">
    <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/image-20260422-175803.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=ede479b5ab84cc70d2fed3f7d5313154" alt="Installments selector" width="1364" height="762" data-path="images/plugins/vtex/image-20260422-175803.png" />
  </Frame>

  <Frame caption="Installment options panel">
    <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/image-20260422-175811.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=9b07f8a3848027a1ab26fb3bd0d4caaa" alt="Options panel" width="1364" height="1042" data-path="images/plugins/vtex/image-20260422-175811.png" />
  </Frame>
</div>

If the plan includes interest, a **Payment details** panel appears below showing the breakdown (number of installments, financing cost, etc.).

<Frame width="300">
  <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/image-20260422-175858.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=11fcb1059464a724df20da71c4af04ad" alt="Financing details" width="1364" height="990" data-path="images/plugins/vtex/image-20260422-175858.png" />
</Frame>

### Eligibility rules

Each installment plan configured in your Yuno dashboard can include optional limits:

* **Amount range**: Minimum and maximum order total.
* **Availability window**: Start and end date for the plan.

If the order doesn't meet these rules, the selector is hidden and Apple Pay renders as a plain button.

### How to enable

To turn on Apple Pay installments, add the `appleInstallmentsMerchantReference` field to the snippet's `initialConfiguration` call:

<Steps>
  <Step title="Get the Merchant reference">
    1. In the **Yuno dashboard**, go to **Installments**.
    2. Open the detail panel for the installment plan you want to offer.
    3. Copy the **Merchant reference** value.

    <Frame>
      <img src="https://mintcdn.com/yuno-3979e326/z8Jixp_IwgkBlbdW/images/plugins/vtex/image-20260429-133722.png?fit=max&auto=format&n=z8Jixp_IwgkBlbdW&q=85&s=15ea4f3d92baa3bf13718d0115c317d0" alt="Merchant reference" width="1914" height="898" data-path="images/plugins/vtex/image-20260429-133722.png" />
    </Frame>
  </Step>

  <Step title="Update the snippet">
    Update your snippet in `checkout6-custom.js`:

    ```javascript theme={"theme":{"light":"github-dark","dark":"github-dark"}}
    YunoVTEXIO.initialConfiguration({
      paymentMethods: ['Google Pay', 'Apple Pay'],
      affiliationName: 'YOUR_AFFILIATION_NAME',
      appleInstallmentsMerchantReference: 'YOUR_MERCHANT_REFERENCE' 
    });
    ```
  </Step>
</Steps>

Save the snippet. The installments selector will appear above the Apple Pay button on the next
checkout.
