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

@revolut/checkout

Package Overview
Dependencies
Maintainers
5
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 1.1.4 to 1.1.5

4

cjs/constants.js

@@ -9,2 +9,3 @@ "use strict";

'de',
'cs',
'it',

@@ -15,4 +16,5 @@ 'lt',

'es',
'cs',
'hu',
'sk',
'ja',
];

@@ -19,0 +21,0 @@ exports.MODE = {

@@ -7,2 +7,3 @@ var _a;

'de',
'cs',
'it',

@@ -13,4 +14,5 @@ 'lt',

'es',
'cs',
'hu',
'sk',
'ja',
];

@@ -17,0 +19,0 @@ export var MODE = {

{
"name": "@revolut/checkout",
"version": "1.1.4",
"version": "1.1.5",
"description": "RevolutCheckout.js as npm module",

@@ -5,0 +5,0 @@ "author": "John Grishin <hi@johngrish.in>",

@@ -1,2 +0,2 @@

export declare const LOCALES: readonly ["en", "nl", "fr", "de", "it", "lt", "pl", "pt", "es", "cs", "hu"];
export declare const LOCALES: readonly ["en", "nl", "fr", "de", "cs", "it", "lt", "pl", "pt", "es", "hu", "sk", "ja"];
export declare const MODE: {

@@ -3,0 +3,0 @@ readonly PRODUCTION: "prod";

@@ -44,2 +44,11 @@ import { MODE, LOCALES } from './constants';

phone?: string;
/** Customer's date of birth. Currently used only in Revolut Pay. */
dateOfBirth?: {
/** between 1 and 31 */
day: number;
/** between 1 and 12 */
month: number;
/** four digit year */
year: number;
};
/** Contains customer's billing address — required if not set on order via API */

@@ -118,2 +127,4 @@ billingAddress?: Address;

buttonStyle?: ButtonStyleOptions;
/** Prefilled customer details. Only valid details are prefilled. */
customer?: CustomerDetails;
/** Callback when user clicks on the RevolutPay button */

@@ -241,2 +252,9 @@ onClick?: () => void;

setDefaultLocale: (lang: Locale) => void;
/** Poll and react to the status of an order payment */
pollPaymentState: (orderToken: string, callbacks: {
onSuccess: () => void;
onError: (error: RevolutCheckoutError) => void;
/** Specifically handle poll errors e.g., network connection issues. Return a value (nullable) to stop polling completely */
onPollError?: (error: RevolutCheckoutError) => void;
}) => () => void;
}

@@ -243,0 +261,0 @@ export interface RevolutPaymentsModuleOptions {

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