Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@revolut/checkout

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@revolut/checkout - npm Package Compare versions

Comparing version 0.1.0-0 to 1.0.0

5

package.json
{
"name": "@revolut/checkout",
"version": "0.1.0-0",
"description": "TODO",
"version": "1.0.0",
"description": "RevolutCheckout.js as npm module",
"author": "John Grishin <hi@johngrish.in>",
"license": "Apache-2.0",
"homepage": "https://business.revolut.com",
"repository": "revolut-engineering/revolut-checkout",

@@ -8,0 +9,0 @@ "main": "cjs/index.js",

18

types/types.d.ts

@@ -40,10 +40,10 @@ import { MODE } from './constants';

export interface PopupOptions extends CustomerDetails {
/** Callback if transaction is failed to complete, the reason should be available in the message parameter */
/** Callback will be called when the payment is completed successfully */
onSuccess?: () => void;
/** Callback if transaction is failed to complete, the reason should be available in the message parameter */
onError?: (error: RevolutCheckoutError) => void;
/** Callback if a user did not complete the transaction and canceled the authorisation or closed the checkout window */
/** Callback if an user did not complete the transaction and canceled the authorisation or closed the checkout window */
onCancel?: () => void;
}
export interface CardFieldOptions extends CustomerDetails {
export interface CardFieldOptions extends PopupOptions {
/** Empty `<div>` inside your form */

@@ -79,3 +79,3 @@ target: HTMLElement;

* Callback called on field status change and contains status object,
* depeding on current field state:
* depending on current field state:
*

@@ -93,8 +93,2 @@ * ```ts

onStatusChange?: (status: FieldStatus) => void;
/** Callback will be called when the payment is completed successfully */
onSuccess?: () => void;
/** Callback if transaction is failed to complete, the reason should be available in the message parameter */
onError?: (error: RevolutCheckoutError) => void;
/** Callback if a user did not complete the transaction and canceled the authorisation or closed the checkout window */
onCancel?: () => void;
}

@@ -118,7 +112,7 @@ export interface RevolutCheckoutCardField extends RevolutCheckoutInstance {

createCardField: (options?: CardFieldOptions) => RevolutCheckoutCardField;
/** Destroy instance */
/** Manually destroy popup or card field if needed */
destroy: () => void;
}
export interface CreateRevolutCheckout {
export interface RevolutCheckout {
(token: string): Promise<RevolutCheckoutInstance>;
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc