Skip to content

Latest commit

 

History

History
66 lines (47 loc) · 1.93 KB

README.md

File metadata and controls

66 lines (47 loc) · 1.93 KB

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