@revolut/checkout
Advanced tools
Comparing version 1.0.6 to 1.0.7-0
{ | ||
"name": "@revolut/checkout", | ||
"version": "1.0.6", | ||
"version": "1.0.7-0", | ||
"description": "RevolutCheckout.js as npm module", | ||
@@ -5,0 +5,0 @@ "author": "John Grishin <hi@johngrish.in>", |
@@ -40,3 +40,3 @@ import { MODE } from './constants'; | ||
} | ||
export interface PopupOptions extends CustomerDetails { | ||
export interface CommonOptions { | ||
/** Callback will be called when the payment is completed successfully */ | ||
@@ -49,2 +49,4 @@ onSuccess?: () => void; | ||
} | ||
export interface PopupOptions extends CustomerDetails, CommonOptions { | ||
} | ||
export interface CardFieldOptions extends PopupOptions { | ||
@@ -95,2 +97,8 @@ /** Empty `<div>` inside your form */ | ||
} | ||
export interface PayWithRevolutOptions extends CommonOptions { | ||
/** Revolut user phone number */ | ||
phone?: string; | ||
/** Revolut user email */ | ||
email?: string; | ||
} | ||
export interface RevolutCheckoutCardField extends RevolutCheckoutInstance { | ||
@@ -115,2 +123,4 @@ /** Submit entered card details along with a customer details */ | ||
createCardField: (options?: CardFieldOptions) => RevolutCheckoutCardField; | ||
/** @private */ | ||
payWithRevolut?: (options: PayWithRevolutOptions) => RevolutCheckoutInstance; | ||
/** Manually destroy popup or card field if needed */ | ||
@@ -117,0 +127,0 @@ destroy: () => void; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
21666
326
1