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

# xMoney

> Process Card, Apple Pay, and Google Pay payments through xMoney.

xMoney is an EEA-licensed European payment gateway supporting card processing (Visa, Mastercard), Apple Pay, and Google Pay. Connect xMoney to Primer to process payments and route them using Workflows.

## At a glance

### Supported payment methods

| Payment method | Payment method type | Integration guide |
| - | - | - |
| Card | `PAYMENT_CARD` | [Card](https://primer.io/docs/connections/payment-methods/card/overview.md) |
| Apple Pay | `APPLE_PAY` | [Apple Pay](https://primer.io/docs/connections/payment-methods/apple-pay/overview.md) |
| Google Pay | `GOOGLE_PAY` | [Google Pay](https://primer.io/docs/connections/payment-methods/google-pay/overview.md) |

> [!NOTE]
>
> Apple Pay and Google Pay support Visa and Mastercard network cards only.

xMoney uses Primer's standard card form and Primer's native Apple Pay and Google Pay integrations, so no xMoney-specific SDK code is required.

### Supported capabilities

| Capability | Card | Apple Pay | Google Pay |
| - | - | - | - |
| Authorization | Yes | Yes | Yes |
| Authorization adjustment | No | No | No |
| Partial capture | Yes | No | No |
| Refund | Yes | Yes | Yes |
| Partial refund | Yes | Yes | Yes |
| Recurring and merchant-initiated payments | Yes | No | No |
| Cancel / Void | Yes | No | No |
| Network tokens | Yes | Yes | Not applicable |

### 3D Secure

Primer performs 3D Secure authentication using the [Perform 3DS action](https://primer.io/docs/workflows/apps/native-apps/primer-payments-app/perform-3ds-action.md) and passes the result to xMoney. xMoney does not run its own 3D Secure for payments processed through Primer.

## Get started with xMoney

### Before you begin

If this is your first connection, make sure to follow the [Get started guide](https://primer.io/docs/get-started/overview.md) to begin processing payments with Primer.

You need an xMoney sandbox account for testing and a separate production account. Contact xMoney to provision both.

### Credentials

| Field |
| - |
| **API Key** |
| **Site ID** |

For help locating your credentials, see the [xMoney get started guide](https://docs.xmoney.com/guides/general/get-started).

### Configure in the Dashboard

**1. Add xMoney to your Dashboard**

Go to [Integrations](https://dashboard.primer.io/integrations), select **New integration**, search for xMoney, and enter your **API Key** and **Site ID**.

**2. Activate the payment methods on the Checkout**

Go to [Checkout](https://dashboard.primer.io/checkout) and activate the payment methods you want to offer.

**3. Route payments with Workflows**

In [Workflows](https://primer.io/docs/workflows/overview.md), select xMoney in the **Authorize payment** action. Add the **Perform 3DS** action before authorization for card payments.

### Prepare the client session

| Parameter | Required | Description |
| - | - | - |
| `cardTransactionMode` | No | Controls capture behaviour. `authAndCapture` authorizes and captures immediately (default). `auth` authorizes only — use this for pre-authorization flows where you capture separately. |

## Considerations

* **Apple Pay and Google Pay — Visa and Mastercard only.** Both wallet payment methods are limited to Visa and Mastercard network cards.

## Test in sandbox

Connect your xMoney sandbox account to your Primer Sandbox environment.

> [tab] Card
>
> Use any valid test card. Any transaction with an amount of **25.01 or higher** triggers a 3DS challenge. When prompted for an authentication code, enter `00000`.

> [tab] Apple Pay
>
> Apple Pay payments use the same underlying card flow. Use a Visa or Mastercard on an Apple Pay-enabled test device.

> [tab] Google Pay
>
> Use an Android device with a Visa or Mastercard from the Google Pay test card suite.

## Go live

Before switching to production, confirm that:

1. Your xMoney production account is active for Card, Apple Pay, and Google Pay.
2. You have added xMoney in your Primer **production** environment using your **production** API Key and Site ID.
3. You handle the [PAYMENT.STATUS webhook](https://primer.io/docs/api-reference/endpoints/v2.4/payment-webhooks/payment-status-update.md) and fulfil orders only on a final status.


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