@openhive-eu/payment 1.0.0-next.10 → 1.0.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +185 -178
- package/dist/index.js.gz +0 -0
- package/dist/index.min.js +29 -23
- package/dist/index.min.js.gz +0 -0
- package/dist/lib/i18n.d.ts +1 -0
- package/dist/payment-widget.d.ts +3 -0
- package/dist/react-widget.d.ts +1 -1
- package/dist/react.js +267 -255
- package/dist/styles.css +1 -1
- package/dist/styles.css.gz +0 -0
- package/package.json +1 -1
package/dist/index.min.js.gz
CHANGED
|
Binary file
|
package/dist/lib/i18n.d.ts
CHANGED
package/dist/payment-widget.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export declare class PaymentWidget extends LitElement {
|
|
|
25
25
|
private _country;
|
|
26
26
|
private _loading;
|
|
27
27
|
private _success;
|
|
28
|
+
private _submitError;
|
|
28
29
|
private _paymentMethods;
|
|
29
30
|
private _methodsLoading;
|
|
30
31
|
private _methodsError;
|
|
@@ -45,6 +46,8 @@ export declare class PaymentWidget extends LitElement {
|
|
|
45
46
|
private _onPhoneInput;
|
|
46
47
|
private _onCountryChange;
|
|
47
48
|
private _onSubmit;
|
|
49
|
+
reportSuccess(): void;
|
|
50
|
+
reportError(message?: string): void;
|
|
48
51
|
private _onClose;
|
|
49
52
|
private _renderMethods;
|
|
50
53
|
private _renderChannels;
|
package/dist/react-widget.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export interface PaymentProps {
|
|
|
32
32
|
customerPhone?: string;
|
|
33
33
|
locale?: string;
|
|
34
34
|
payClient?: PayClientInterface;
|
|
35
|
-
onRequestToPay?: (detail: RequestToPay) => void
|
|
35
|
+
onRequestToPay?: (detail: RequestToPay) => void | Promise<void>;
|
|
36
36
|
onClose?: () => void;
|
|
37
37
|
className?: string;
|
|
38
38
|
style?: React.CSSProperties;
|