@revolut/checkout
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -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 { |
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
35172
671