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 1.0.9 to 1.0.10

2

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

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

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

# [RevolutCheckout.js](https://developer.revolut.com/docs/merchant-api/#revolutcheckout-js-reference)
# [RevolutCheckout.js](https://developer.revolut.com/docs/revolut-checkout-js/)

@@ -3,0 +3,0 @@ [![](https://flat.badgen.net/npm/v/@revolut/checkout)](https://www.npmjs.com/package/@revolut/checkout) [![](https://flat.badgen.net/bundlephobia/minzip/@revolut/checkout)](https://bundlephobia.com/result?p=@revolut/checkout)

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

export declare type FieldClasses = Partial<StatusRecord<string>>;
export declare type ButtonStyleOptions = {
variant?: 'dark' | 'light' | 'auto';
size?: 'large' | 'small';
};
export interface Address {

@@ -51,2 +55,4 @@ countryCode: CountryCode;

onCancel?: () => void;
/** Indicates in which case this saved payment method can be used for payments */
savePaymentMethodFor?: 'merchant' | 'customer';
}

@@ -100,3 +106,3 @@ export interface PopupOptions extends CustomerDetails, CommonOptions {

}
export interface PayWithRevolutOptions extends CommonOptions {
export interface RevolutPayOptions extends CommonOptions {
/** Empty element inside payment page */

@@ -108,2 +114,4 @@ target: HTMLElement;

email?: string;
/** Styles of the RevolutPay button */
buttonStyle?: ButtonStyleOptions;
}

@@ -117,2 +125,4 @@ export interface PaymentRequestOptions extends CommonOptions {

disableBasicCard?: boolean;
/** Styles of the PaymentRequest button */
buttonStyle?: ButtonStyleOptions;
}

@@ -149,4 +159,4 @@ export interface RevolutCheckoutCardField extends RevolutCheckoutInstance {

/** @private */
payWithRevolut?: (options: PayWithRevolutOptions) => RevolutCheckoutInstance;
/** Accept payments via the W3C payment request API*/
revolutPay?: (options: RevolutPayOptions) => RevolutCheckoutInstance;
/** Accept payments via the W3C payment request API */
paymentRequest: (options: PaymentRequestOptions) => PaymentRequestInstance;

@@ -153,0 +163,0 @@ /** Manually destroy popup or card field if needed */

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