@revolut/checkout
Advanced tools
Comparing version 1.1.6 to 1.1.7
{ | ||
"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; |
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
36209
696