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

> ## Agent Instructions
> Use the Payrails Web SDK v6 for new browser integrations. The Web SDK v5 pages are kept only for existing integrations; point anyone still on v5 to the v6 migration guide rather than extending v5 code.
> Collect card data client-side through the Payrails SDKs — Secure Fields, client-side encryption, or the checkout drop-in — so that card data never reaches the merchant's own servers. Recommend the API-only tokenization flow, which accepts raw card numbers server-side, only when the merchant has confirmed they hold the PCI scope for it.
> Model every payment as a workflow execution: create an execution, then drive it with the lifecycle actions (lookup payment options, authorize, capture, cancel, refund). Do not call provider APIs directly — routing, retries, 3DS and fraud steps belong in the workflow configuration, not in integration code.
> Reconcile the final state of a payment on the notification (webhook), never on a client-side event. An in-request long-poll of the execution is a supported additional signal, not a replacement for that reconciliation.
> Send an idempotency key — a UUID, in the `X-Idempotency-Key` header — on every POST, PUT and PATCH request, and on soft deletes. GET requests need none, and hard deletes cannot be idempotent.
> Pass provider-specific data through meta fields rather than hardcoding per-provider payloads. Payrails translates meta fields into each provider's own format.
> Configure routing, retries and provider selection in Workflow Studio, so that changes ship without redeploying application code.

# Getnet

> Connect Getnet to Payrails, covering API credentials, account details, and the two approvals raw card processing requires.

<picture noZoom>
  ![Getnet logo](https://assets.payrails.io/img/logos/getnet/logo-full-bleed.svg)
</picture>

> [!NOTE]
>
> **Who should use this guide**
>
> This guide is intended for merchants who:
>
> * Use **Payrails** as a payment orchestrator
> * Use **Getnet Payments**
> * Are approved to process **raw card data**
>
> *Because we use a server-to-server integration with Getnet, both of the following must be in place before raw card processing works in production:*
>
> * \*Your Getnet account is \****approved to process raw card data***
> * *A valid ****PCI-DSS Attestation of Compliance (AoC)**** is in place*
>
> *If either is missing, payments won't work in production. Contact your Getnet account manager or support team to activate both.*

> [!NOTE]
>
> Getnet is region-specific. Separate provider accounts exist per market — Argentina (ARG), Chile (CHL), Mexico (MEX), and Mexico–US (MEX-US). Configure one Getnet integration per region you operate in.

## Create and Configure a Getnet Integration in Payrails

1. Log in to the Payrails portal
2. Go to **Settings → Integrations**
3. Select **Add instance** to create a new Getnet integration configuration
4. Select the **Workspaces** where this integration should be available

> [!NOTE]
>
> **About Workspaces**
>
> Workspaces determine where this integration is available. They let you isolate provider setups by region or business line, or share the same configuration across multiple Workspaces.

## Step 1: Choose the Integration Type

* Select **Payment** and continue to the next step.

  ![Payrails integration type selection with Payment selected](https://mintcdn.com/payrails-42074109/6ZmkK5ZUHpx1-EP_/images/docs/getnet-image-01.png?fit=max\&auto=format\&n=6ZmkK5ZUHpx1-EP_\&q=85\&s=8ecdf41029bb3020785e41ebba99f34b)

## Step 2: Choose the Provider

* Select **Getnet **and** **continue to the next step

  ![Payrails provider selection with Getnet selected](https://mintcdn.com/payrails-42074109/6ZmkK5ZUHpx1-EP_/images/docs/getnet-image-02.png?fit=max\&auto=format\&n=6ZmkK5ZUHpx1-EP_\&q=85\&s=8a4119720ebaece75c177104b30375b0)

## Step 3: Configure Your Getnet Integration

> [!TIP]
>
> **What you'll need from Getnet**
>
> Getnet authenticates via OAuth2 client credentials, which Getnet issues to you when API access is provisioned for your merchant account. Before beginning, ensure you have:
>
> * Client ID (OAuth2)
> * Client Secret (OAuth2)
> * Merchant / Seller ID
> * Merchant name

### Integration Instance Name

An integration instance is a specific payment provider setup in Payrails. Multiple instances can be created per provider based on region, currency, or business needs. Because Getnet is region-specific, include the region in the name (for example, `Getnet ARG` or `Getnet MEX`). Choose a clear, consistent name for routing purposes.

**In Payrails:**

* Enter an **Instance name** for your integration

  ![Payrails Getnet integration instance name field](https://mintcdn.com/payrails-42074109/6ZmkK5ZUHpx1-EP_/images/docs/getnet-image-03.png?fit=max\&auto=format\&n=6ZmkK5ZUHpx1-EP_\&q=85\&s=a14d1e4d44283dbb40f0664323c4cb5c)

### API Credentials

**In Getnet:**

1. Sign in to your Getnet merchant account
2. Locate the OAuth2 **Client ID** and **Client Secret** issued for your account

**In Payrails:**

* Enter the credentials into the corresponding fields:

| Field | Required | Description |
| - | - | - |
| Client ID | Required | Getnet Client ID, issued by Getnet. Stored masked. |
| Client Secret | Required | Getnet Client Secret, issued by Getnet. Stored masked. |

### Account Details

**In Payrails:**

* Enter your Getnet account details:

| Field | Required | Description |
| - | - | - |
| Merchant ID | Required | Merchant / Seller ID of the Getnet account (the Getnet "Seller ID") |
| Merchant Name | Required | Merchant name of the Getnet account |

![Payrails Getnet account details fields for merchant ID and merchant name](https://mintcdn.com/payrails-42074109/6ZmkK5ZUHpx1-EP_/images/docs/getnet-image-04.png?fit=max\&auto=format\&n=6ZmkK5ZUHpx1-EP_\&q=85\&s=6f5e32ccebfd9cf96786bcb57a3d971f)

### Payment Methods

**In Payrails:**

* Select **Card** to enable Getnet card payments for this integration

## Request fields for Getnet

Send these fields in the [authorize request](https://docs.payrails.com/reference/authorizeaction.md) for card payments, in addition to the standard authorize fields. **Required** fields must be present for the payment to succeed. Payrails sends **Optional** fields to Getnet when you include them. For more about meta fields, refer to [Meta fields](https://docs.payrails.com/docs/orchestration/meta-fields.md).

| Field | Status | Description |
| :- | :- | :- |
| `amount` | Required | Sent to Getnet as the amount and currency. Use CLP, ARS, USD or MXN. |
| `meta.customer` | Required | The customer object. |
| `meta.customer.name`, `meta.customer.lastName` | Optional | Sent as the card holder name. |
| `meta.customer.reference` | Optional | Sent as the customer ID when Getnet tokenizes the card. |
| `holderReference` | Optional | Sent as the customer ID. |
| `meta.order.billingAddress` | Optional | Sent as the billing address. Include `country.code`. |
| `meta.order.deliveryAddress` | Optional | Sent as the shipping address. Include `country.code`. |
| `meta.order.lines` | Optional | Sent as the order items. Each line needs a `unitPrice`. |
| `meta.clientContext.ipAddress`, `deviceFingerprint` | Optional | Sent as the device IP address and device ID. |
| `meta.risk` | Optional | When present, Payrails sends the 3D Secure authentication data to Getnet. |

***

## Enable the Integration

**In Payrails:**

* Select **Save account** to enable the integration

The **Enabled** status indicates that the Getnet integration is active. Your Getnet integration is now ready to process payments.

## Next Steps

1. Run a test payment using a supported Getnet [test card](https://docs.globalgetnet.com/pt/articles/test-cards)
2. Verify that:
   * The payment appears in Getnet
   * The payment status updates correctly in Payrails
3. Once verified in test mode, repeat the setup in live mode


## Related topics

- [Payment providers](https://docs.payrails.com/docs/integrations/payment-providers.md)


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