@spot-flow/checkout-inline-js 0.1.31 → 0.1.32-dev.1
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/checkout-inline.es.js +6955 -4220
- package/dist/checkout-inline.js +73 -66
- package/dist/types/types.d.ts +8 -0
- package/dist/views/transfer/transfer-details.d.ts +2 -0
- package/package.json +3 -2
- package/dist/utils/keys.d.ts +0 -1
package/dist/types/types.d.ts
CHANGED
|
@@ -173,3 +173,11 @@ export type RetryPaymentPayload = {
|
|
|
173
173
|
phoneNumber: string;
|
|
174
174
|
};
|
|
175
175
|
};
|
|
176
|
+
export type PusherResponse = {
|
|
177
|
+
amount: string;
|
|
178
|
+
currency: string;
|
|
179
|
+
redirectUrl: string;
|
|
180
|
+
reference: string;
|
|
181
|
+
spotflowReference: string;
|
|
182
|
+
status: string;
|
|
183
|
+
};
|
|
@@ -3,10 +3,12 @@ import { PaymentResponseData } from '../../types/types';
|
|
|
3
3
|
type Props = {
|
|
4
4
|
container: HTMLDivElement;
|
|
5
5
|
onAction: (_val: number) => void;
|
|
6
|
+
onFail: (_val: number, message?: string) => void;
|
|
6
7
|
};
|
|
7
8
|
export declare class TransferDetail {
|
|
8
9
|
container: HTMLDivElement;
|
|
9
10
|
onAction: (_val: number) => void;
|
|
11
|
+
onFail: (_val: number, message?: string) => void;
|
|
10
12
|
private initialTime;
|
|
11
13
|
private timeLeft;
|
|
12
14
|
private timerId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spot-flow/checkout-inline-js",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32-dev.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/checkout-inline.js",
|
|
6
6
|
"module": "dist/checkout-inline.es.js",
|
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
"payment"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"mixpanel-browser": "^2.55.1"
|
|
61
|
+
"mixpanel-browser": "^2.55.1",
|
|
62
|
+
"pusher-js": "^8.4.0"
|
|
62
63
|
}
|
|
63
64
|
}
|
package/dist/utils/keys.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mixpanelKey = "11162d9a0801daeaf786f1200cd3112b";
|