@revolut/checkout
v1.1.19
Published
RevolutCheckout.js as npm module
Downloads
14,704
Readme
RevolutCheckout.js
Install
Usage
RevolutCheckout
Params
token: string
—public_id
from create payment order API request- mode?: '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.
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