@revolut/checkout
Advanced tools
Comparing version
{ | ||
"name": "@revolut/checkout", | ||
"version": "1.1.19", | ||
"version": "1.1.20", | ||
"description": "RevolutCheckout.js as npm module", | ||
@@ -5,0 +5,0 @@ "author": "John Grishin <hi@johngrish.in>", |
@@ -154,2 +154,8 @@ import { MODE, LOCALES } from './constants'; | ||
requestShipping?: boolean; | ||
/** Request payer name in payment request UI */ | ||
requestPayerName?: boolean; | ||
/** Request payer phone in payment request UI */ | ||
requestPayerPhone?: boolean; | ||
/** Request payer email in payment request UI */ | ||
requestPayerEmail?: boolean; | ||
/** Disable payment request via basic card */ | ||
@@ -245,8 +251,11 @@ disableBasicCard?: boolean; | ||
type: 'success'; | ||
orderId: string; | ||
} | { | ||
type: 'error'; | ||
error: RevolutCheckoutError; | ||
orderId: string; | ||
} | { | ||
type: 'cancel'; | ||
dropOffState: RevolutPayDropOffState; | ||
orderId?: string; | ||
}; | ||
@@ -392,2 +401,7 @@ } | { | ||
currency: string; | ||
/** Style object for customisation */ | ||
style?: { | ||
text?: 'learn_more' | 'cashback' | 'get_discounts' | 'earn_as_customer'; | ||
color?: 'blue' | 'black'; | ||
}; | ||
} | ||
@@ -394,0 +408,0 @@ export interface WidgetUpsellPromotionalBannerInformationalIconOptions { |
56244
0.92%1168
1.21%