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

# Create international card payment

> Creates the euro or dollar payment with the card tokenized in the Clivo SDK

Creates the card payment in EUR or USD from the card tokenized in the Clivo SDK. `amount` is in reais (cents) and is
converted at the current exchange rate. Once approved (and after 3DS, when requested), use the `paymentId` in
`international.cardPaymentId` when [creating the transaction](https://docs.safefypay.com.br/en/api-reference/transactions/international.md).

## Request

`POST /v1/transactions/international/card-payments`

```json theme={null}
{
  "currency": "EUR",
  "amount": 15000,
  "paymentMethodId": "pm_1QabcXYZ",
  "country": "FR",
  "description": "Photography course"
}
```

| Field | Type | Required | Description |
| - | - | - | - |
| `currency` | string | yes | `EUR` or `USD` |
| `amount` | int | yes | Price in reais (cents) |
| `paymentMethodId` | string | yes | Card tokenized in the Clivo SDK (`pm_...`). With `provider = eagleglobal`, send `eagle` |
| `country` | string | yes | Buyer's country (ISO 3166-1 alpha-2, outside Brazil) |
| `description` | string | no | Payment description (up to 255 characters) |

## Response

### 200: Success

```json theme={null}
{
  "data": {
    "paymentId": "pi_3QabcXYZ",
    "clientSecret": "pi_3QabcXYZ_secret_...",
    "status": "requires_action",
    "requiresAction": true,
    "currency": "EUR",
    "localAmount": 2430
  }
}
```

| Field | Description |
| - | - |
| `paymentId` | Payment id at Clivo (`pi_...`). Goes in `international.cardPaymentId` |
| `clientSecret` | Secret to finish 3DS in the SDK |
| `status` | Payment status at Clivo |
| `requiresAction` | `true` when the buyer must finish 3DS before the transaction is created |
| `currency` | Payment currency |
| `localAmount` | Amount charged in the currency (x 100) |
| `provider` | `clivoglobal`, `eagleglobal` or `sandbox` |
| `sessionId`, `elementToken`, `sessionSecret`, `compatDate` | Only with `eagleglobal`: the session for Eagle's form (see [International sales](https://docs.safefypay.com.br/en/api-reference/transactions/international.md)) |

In Sandbox the payment is simulated and comes out approved.

### 400: Invalid data or card declined

```json theme={null}
{
  "error": {
    "message": "Moeda inválida. Use EUR ou USD.",
    "code": "validation_error"
  }
}
```

### 401: Invalid token

```json theme={null}
{
  "error": {
    "message": "Token inválido.",
    "code": "invalid_token"
  }
}
```


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