Skip to content

revolut-engineering/revolut-checkout

Repository files navigation

Install

npm install @revolut/checkout
yarn add @revolut/checkout

Usage

RevolutCheckout

Params

import RevolutCheckout from '@revolut/checkout'

RevolutCheckout('TOKEN_XXX', 'prod').then((instance) => {
  // Work with instance:

  // instance.payWithPopup()
  // instance.createCardField()
  // ...
})

For more information read our official documentation.

TypeScript support

Following types are availble for import:

import {
  ValidationErrorType,
  ValidationError,
  RevolutCheckoutErrorType,
  RevolutCheckoutError,
  FieldStatus,
  FieldClasses,
  FieldStyles,
  RevolutCheckoutCardField,
  RevolutCheckoutInstance,
} from '@revolut/checkout'

Docs


© 2023 Revolut Ltd