@revolut/checkout
Advanced tools
Comparing version 1.0.9 to 1.0.10
{ | ||
"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 */ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23021
363