# Revolut Merchant Web SDK

The Revolut Merchant Web SDK provides TypeScript-first SDKs for integrating payment methods into web applications. Accept Card, Revolut Pay, Apple Pay, Google Pay, and Pay by Bank payments with a unified SDK.

| **Package**                                                            | **Version** | **License** |
| ---------------------------------------------------------------------- | ----------- | ----------- |
| [`@revolut/checkout`](https://www.npmjs.com/package/@revolut/checkout) | 1.1.23+     | Apache-2.0  |

## Get started

- **[Get started](/docs/sdks/merchant-web-sdk/get-started)** - Install the SDK and choose the right initialisation method
- **[Payment methods](/docs/sdks/merchant-web-sdk/payment-methods/introduction)** - Card, Revolut Pay, Apple Pay, Google Pay, Pay by Bank
- **[Promotional widgets](/docs/sdks/merchant-web-sdk/promotional-widgets/introduction)** - Upsell and promotional features

## Key features

- **Unified SDK** - One package for all payment methods
- **TypeScript support** - Full type definitions included
- **PCI compliant** - Secure iframe implementation
- **Dashboard configuration** - Update payment methods without code changes (embedded checkout)
- **Continuous updates** - Always access the latest payment features

## Browser support

- Chrome 90+
- Firefox 88+
- Safari 14+
- Edge 90+

## TypeScript support

Full TypeScript definitions included. Strict mode compatible.

```typescript
import RevolutCheckout from "@revolut/checkout";

// All methods return typed promises
const instance = await RevolutCheckout(token, "prod");
```

## Installation

```install
npm install @revolut/checkout
```

:::info
For more information about installation, see: [Get started](/docs/sdks/merchant-web-sdk/get-started)
:::

## SDK structure

The SDK provides four initialisation patterns:

1. **[Token-based initialization](/docs/sdks/merchant-web-sdk/initialisation/token-based)** - For card payments with pre-created orders
1. **[Direct initialisation](/docs/sdks/merchant-web-sdk/initialisation/direct)** - Unified widget for all payment methods
1. **[Payments module](/docs/sdks/merchant-web-sdk/initialisation/payments-module)** - Individual payment method buttons
1. **[Upsell module](/docs/sdks/merchant-web-sdk/initialisation/upsell-module)** - Promotional and upsell widgets

## What's next

- [Payment methods](/docs/sdks/merchant-web-sdk/payment-methods/introduction)
- [Integration examples](/docs/sdks/merchant-web-sdk/integration-examples)
- [Types reference](/docs/sdks/merchant-web-sdk/types/introduction)
- [Implementation guides](/docs/guides/merchant/introduction)
- [Merchant API documentation](/docs/api/merchant)