npm install @revolut/checkout
yarn add @revolut/checkout
token: string
—public_id
from create payment order API requestmode?: 'prod' | 'sandbox'
— API environment, defaults to'prod'
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.
Following types are availble for import:
import {
ValidationErrorType,
ValidationError,
RevolutCheckoutErrorType,
RevolutCheckoutError,
FieldStatus,
FieldClasses,
FieldStyles,
RevolutCheckoutCardField,
RevolutCheckoutInstance,
} from '@revolut/checkout'
© 2023 Revolut Ltd