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.6 to 1.1.7

2

package.json
{
"name": "@revolut/checkout",
"version": "1.1.6",
"version": "1.1.7",
"description": "RevolutCheckout.js as npm module",

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

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

export declare type FieldClasses = Partial<StatusRecord<string>>;
declare type RevolutPayButtonStyleOptions = {
cashback: boolean;
cashbackAmount: 1000 | 2500;
cashbackCurrency: 'USD' | 'GBP' | 'EUR';
};
export declare type ButtonStyleOptions = {

@@ -28,3 +33,3 @@ height?: string;

action?: 'donate' | 'pay' | 'subscribe' | 'buy';
};
} & Partial<RevolutPayButtonStyleOptions>;
export declare type SubmitMeta = CustomerDetails & Pick<CommonOptions, 'savePaymentMethodFor'>;

@@ -158,6 +163,18 @@ export interface Address {

declare type CommonPaymentsRevolutPayOptions = {
/** Decide whether to use fast checkout or not **/
requestShipping?: boolean;
/** Alternative API to payment events */
redirectUrls?: {
success: string;
failure: string;
cancel: string;
};
billingAddress?: Address;
buttonStyle?: ButtonStyleOptions;
/** Validation promise to be resolved before a user can make payments. Throw an error otherwise */
validate?: () => Promise<void>;
/** Prefill your customer details within the Revolut pay popup */
customer?: CustomerDetails;
/** Validation promise to be resolved before a user can make payments.
* Throw an error and the error message will be displayed in the Revolut pay popup */
validate?: () => Promise<boolean> | boolean;
/** A promise to create a Revolut order at a later time within the Revolut pay flow */
createOrder: () => Promise<{

@@ -164,0 +181,0 @@ publicId: string;

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