@spot-flow/checkout-inline-js 0.1.49-dev.3 → 0.1.49-dev.4

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.
@@ -1,85 +1,85 @@
1
- import { GetMerchantDetailsTax } from '../types/types';
2
- import { PageLoader } from '../views/shared/page-loader';
3
- import { CustomerDetails } from '../types';
4
-
5
- type Props = {
6
- container: HTMLElement;
7
- closeModal: () => void;
8
- customer: CustomerDetails;
9
- onSuccess?: (_val?: any) => void;
10
- amount: number;
11
- totalAmount: number;
12
- rdtCode?: string;
13
- metadata: Record<string, unknown>;
14
- url?: string;
15
- reference: string;
16
- callBackUrl: string;
17
- merchantKey: string;
18
- localCurrency: string;
19
- name?: string;
20
- currency: string;
21
- token: string;
22
- disablePaymentMethods: (name: string) => void;
23
- onClose: (notClosePayment: boolean) => void;
24
- hidePaymentMethods: () => void;
25
- showPaymentMethods: () => void;
26
- restartTransactionProcess: () => void;
27
- retryingPayment: boolean;
28
- countryCode?: string;
29
- };
30
- declare class MobileMoney {
31
- private contents;
32
- private mobileMoneyForm;
33
- private mobileMoneyValidationForm;
34
- private onSuccess;
35
- private mobileMoneyConfirmation;
36
- private mobileMoneyConfirmationEnd;
37
- private transactionIssuesScreen;
38
- private container;
39
- private pageLoader;
40
- mainLoader: PageLoader;
41
- private _currentStep;
42
- private successScreen;
43
- private customer;
44
- private activeRef;
45
- private warningScreen;
46
- private amount;
47
- private totalAmount;
48
- private url?;
49
- private reference;
50
- private metadata;
51
- private currency;
52
- private localCurrency;
53
- private token;
54
- private callBackUrl;
55
- private rdtCode?;
56
- merchantDetails: GetMerchantDetailsTax;
57
- private onClose;
58
- private hidePaymentMethods;
59
- private showPaymentMethods;
60
- disablePaymentMethods: (name: string) => void;
61
- private paymentResponse;
62
- private paymentResponseHeaders;
63
- private restartTransactionProcess;
64
- private retryingPayment;
65
- isMaxRetriesReached: boolean;
66
- isMobile: boolean;
67
- countryCode?: string;
68
- errorText: string;
69
- otpMessage: string;
70
- constructor({ container, merchantKey, localCurrency, metadata, callBackUrl, rdtCode, reference, onSuccess, url, customer, amount, totalAmount, token, currency, disablePaymentMethods, hidePaymentMethods, showPaymentMethods, onClose, restartTransactionProcess, retryingPayment, countryCode, }: Props);
71
- get currentStep(): number;
72
- set currentStep(step: number);
73
- attachInputListeners(): void;
74
- createMobileMoney(e: Event, values: {
75
- code: string;
76
- phoneNumber: string;
77
- otp?: string;
78
- }): Promise<void>;
79
- showLoader(): void;
80
- submitOtp(e: Event, values: string): void;
81
- verifyPaymentProcess(): Promise<void>;
82
- goBackToMerchant(): void;
83
- renderMobileMoneyContent(values?: GetMerchantDetailsTax): void;
84
- }
85
- export default MobileMoney;
1
+ import { GetMerchantDetailsTax } from '../types/types';
2
+ import { PageLoader } from '../views/shared/page-loader';
3
+ import { CustomerDetails } from '../types';
4
+
5
+ type Props = {
6
+ container: HTMLElement;
7
+ closeModal: () => void;
8
+ customer: CustomerDetails;
9
+ onSuccess?: (_val?: any) => void;
10
+ amount: number;
11
+ totalAmount: number;
12
+ rdtCode?: string;
13
+ metadata: Record<string, unknown>;
14
+ url?: string;
15
+ reference: string;
16
+ callBackUrl: string;
17
+ merchantKey: string;
18
+ localCurrency: string;
19
+ name?: string;
20
+ currency: string;
21
+ token: string;
22
+ disablePaymentMethods: (name: string) => void;
23
+ onClose: (notClosePayment: boolean) => void;
24
+ hidePaymentMethods: () => void;
25
+ showPaymentMethods: () => void;
26
+ restartTransactionProcess: () => void;
27
+ retryingPayment: boolean;
28
+ countryCode?: string;
29
+ };
30
+ declare class MobileMoney {
31
+ private contents;
32
+ private mobileMoneyForm;
33
+ private mobileMoneyValidationForm;
34
+ private onSuccess;
35
+ private mobileMoneyConfirmation;
36
+ private mobileMoneyConfirmationEnd;
37
+ private transactionIssuesScreen;
38
+ private container;
39
+ private pageLoader;
40
+ mainLoader: PageLoader;
41
+ private _currentStep;
42
+ private successScreen;
43
+ private customer;
44
+ private activeRef;
45
+ private warningScreen;
46
+ private amount;
47
+ private totalAmount;
48
+ private url?;
49
+ private reference;
50
+ private metadata;
51
+ private currency;
52
+ private localCurrency;
53
+ private token;
54
+ private callBackUrl;
55
+ private rdtCode?;
56
+ merchantDetails: GetMerchantDetailsTax;
57
+ private onClose;
58
+ private hidePaymentMethods;
59
+ private showPaymentMethods;
60
+ disablePaymentMethods: (name: string) => void;
61
+ private paymentResponse;
62
+ private paymentResponseHeaders;
63
+ private restartTransactionProcess;
64
+ private retryingPayment;
65
+ isMaxRetriesReached: boolean;
66
+ isMobile: boolean;
67
+ countryCode?: string;
68
+ errorText: string;
69
+ otpMessage: string;
70
+ constructor({ container, merchantKey, localCurrency, metadata, callBackUrl, rdtCode, reference, onSuccess, url, customer, amount, totalAmount, token, currency, disablePaymentMethods, hidePaymentMethods, showPaymentMethods, onClose, restartTransactionProcess, retryingPayment, countryCode, }: Props);
71
+ get currentStep(): number;
72
+ set currentStep(step: number);
73
+ attachInputListeners(): void;
74
+ createMobileMoney(e: Event, values: {
75
+ code: string;
76
+ phoneNumber: string;
77
+ otp?: string;
78
+ }): Promise<void>;
79
+ showLoader(): void;
80
+ submitOtp(e: Event, values: string): void;
81
+ verifyPaymentProcess(): Promise<void>;
82
+ goBackToMerchant(): void;
83
+ renderMobileMoneyContent(values?: GetMerchantDetailsTax): void;
84
+ }
85
+ export default MobileMoney;
@@ -1,68 +1,68 @@
1
- import { GetMerchantDetailsTax } from '../types/types';
2
- import { CustomerDetails } from '../types';
3
-
4
- type Props = {
5
- container: HTMLElement;
6
- token: string;
7
- customer: CustomerDetails;
8
- amount: number;
9
- totalAmount: number;
10
- switchTab: (val: number) => void;
11
- onSuccess?: (_val?: any) => void;
12
- currency: string;
13
- rdtCode?: string;
14
- url?: string;
15
- reference: string;
16
- callBackUrl: string;
17
- metadata: Record<string, unknown>;
18
- localCurrency: string;
19
- hidePaymentMethods: () => void;
20
- showPaymentMethods: () => void;
21
- onClose: (notClosePayment: boolean) => void;
22
- restartTransactionProcess: () => void;
23
- retryingPayment: boolean;
24
- };
25
- declare class Opay {
26
- private contents;
27
- private OpayAuthenticate;
28
- private successScreen;
29
- private pageLoader;
30
- private warningScreen;
31
- private transactionIssuesScreen;
32
- private container;
33
- private customer;
34
- private token;
35
- private amount;
36
- private totalAmount;
37
- private currency;
38
- private _currentStep;
39
- private rdtCode?;
40
- private url?;
41
- private reference;
42
- private callBackUrl;
43
- private metadata;
44
- private localCurrency;
45
- private hidePaymentMethods;
46
- private showPaymentMethods;
47
- private merchantPlanDetail;
48
- private restartTransactionProcess;
49
- private retryingPayment;
50
- isMaxRetriesReached: boolean;
51
- isMobile: boolean;
52
- private paymentResponse;
53
- private paymentResponseHeaders;
54
- private countdownInterval;
55
- private popupInterval;
56
- errorText: string;
57
- constructor({ amount, totalAmount, container, customer, token, currency, rdtCode, url, reference, callBackUrl, metadata, localCurrency, hidePaymentMethods, showPaymentMethods, restartTransactionProcess, retryingPayment, }: Props);
58
- get currentStep(): number;
59
- set currentStep(step: number);
60
- showLoader(): void;
61
- goBackToMerchant(): void;
62
- createOpayPayment(): Promise<void>;
63
- startCountdown(seconds: number, onTick: (remaining: number) => void, onComplete: () => void): NodeJS.Timeout;
64
- private redirectToOpay;
65
- verifyPaymentProcess(): Promise<void>;
66
- renderOpayContent(values?: GetMerchantDetailsTax): void;
67
- }
68
- export default Opay;
1
+ import { GetMerchantDetailsTax } from '../types/types';
2
+ import { CustomerDetails } from '../types';
3
+
4
+ type Props = {
5
+ container: HTMLElement;
6
+ token: string;
7
+ customer: CustomerDetails;
8
+ amount: number;
9
+ totalAmount: number;
10
+ switchTab: (val: number) => void;
11
+ onSuccess?: (_val?: any) => void;
12
+ currency: string;
13
+ rdtCode?: string;
14
+ url?: string;
15
+ reference: string;
16
+ callBackUrl: string;
17
+ metadata: Record<string, unknown>;
18
+ localCurrency: string;
19
+ hidePaymentMethods: () => void;
20
+ showPaymentMethods: () => void;
21
+ onClose: (notClosePayment: boolean) => void;
22
+ restartTransactionProcess: () => void;
23
+ retryingPayment: boolean;
24
+ };
25
+ declare class Opay {
26
+ private contents;
27
+ private OpayAuthenticate;
28
+ private successScreen;
29
+ private pageLoader;
30
+ private warningScreen;
31
+ private transactionIssuesScreen;
32
+ private container;
33
+ private customer;
34
+ private token;
35
+ private amount;
36
+ private totalAmount;
37
+ private currency;
38
+ private _currentStep;
39
+ private rdtCode?;
40
+ private url?;
41
+ private reference;
42
+ private callBackUrl;
43
+ private metadata;
44
+ private localCurrency;
45
+ private hidePaymentMethods;
46
+ private showPaymentMethods;
47
+ private merchantPlanDetail;
48
+ private restartTransactionProcess;
49
+ private retryingPayment;
50
+ isMaxRetriesReached: boolean;
51
+ isMobile: boolean;
52
+ private paymentResponse;
53
+ private paymentResponseHeaders;
54
+ private countdownInterval;
55
+ private popupInterval;
56
+ errorText: string;
57
+ constructor({ amount, totalAmount, container, customer, token, currency, rdtCode, url, reference, callBackUrl, metadata, localCurrency, hidePaymentMethods, showPaymentMethods, restartTransactionProcess, retryingPayment, }: Props);
58
+ get currentStep(): number;
59
+ set currentStep(step: number);
60
+ showLoader(): void;
61
+ goBackToMerchant(): void;
62
+ createOpayPayment(): Promise<void>;
63
+ startCountdown(seconds: number, onTick: (remaining: number) => void, onComplete: () => void): NodeJS.Timeout;
64
+ private redirectToOpay;
65
+ verifyPaymentProcess(): Promise<void>;
66
+ renderOpayContent(values?: GetMerchantDetailsTax): void;
67
+ }
68
+ export default Opay;
@@ -1,76 +1,76 @@
1
- import { GetMerchantDetailsTax } from '../types/types';
2
- import { PageLoader } from '../views/shared/page-loader';
3
- import { CustomerDetails } from '../types';
4
-
5
- type Props = {
6
- container: HTMLElement;
7
- closeModal: () => void;
8
- token: string;
9
- customer: CustomerDetails;
10
- amount: number;
11
- totalAmount: number;
12
- currency: string;
13
- rdtCode?: string;
14
- url?: string;
15
- reference: string;
16
- callBackUrl: string;
17
- metadata: Record<string, unknown>;
18
- localCurrency: string;
19
- disablePaymentMethods: (name: string) => void;
20
- restartTransactionProcess: () => void;
21
- hidePaymentMethods: () => void;
22
- retryingPayment: boolean;
23
- };
24
- declare class Transfer {
25
- private container;
26
- private contents;
27
- private closeModal;
28
- private customer;
29
- private transferDetails;
30
- private transferConfirmationProgress;
31
- private transferConfirmationEnd;
32
- private transferExpired;
33
- mainLoader: PageLoader;
34
- private warningScreen;
35
- private successScreen;
36
- private merchantPlanDetail;
37
- private token;
38
- private currency;
39
- private amount;
40
- private totalAmount;
41
- private rdtCode?;
42
- private url?;
43
- private reference;
44
- private _currentStep;
45
- private activeRef;
46
- private paymentResponse;
47
- private timerId;
48
- private abortController;
49
- private callBackUrl;
50
- private metadata;
51
- private localCurrency;
52
- private transactionIssuesScreen;
53
- disablePaymentMethods: (name: string) => void;
54
- private paymentResponseHeaders;
55
- private restartTransactionProcess;
56
- private hidePaymentMethods;
57
- private retryingPayment;
58
- isMaxRetriesReached: boolean;
59
- isMobile: boolean;
60
- errorText: string;
61
- constructor({ amount, totalAmount, closeModal, container, customer, token, currency, rdtCode, url, reference, callBackUrl, metadata, localCurrency, disablePaymentMethods, restartTransactionProcess, hidePaymentMethods, retryingPayment, }: Props);
62
- get currentStep(): number;
63
- set currentStep(step: number);
64
- attachInputListeners(): void;
65
- onSentVerify(values: number): void;
66
- verifyTransfer(): Promise<void>;
67
- createTransfer(): Promise<void>;
68
- goBackToMerchant(): void;
69
- renderTransferContent(values?: GetMerchantDetailsTax): void;
70
- private stopTimer;
71
- stopProgressBar(): void;
72
- copyToClipboard(text: string, element: Element): void;
73
- destroyTimer(): void;
74
- stopPolling(): void;
75
- }
76
- export default Transfer;
1
+ import { GetMerchantDetailsTax } from '../types/types';
2
+ import { PageLoader } from '../views/shared/page-loader';
3
+ import { CustomerDetails } from '../types';
4
+
5
+ type Props = {
6
+ container: HTMLElement;
7
+ closeModal: () => void;
8
+ token: string;
9
+ customer: CustomerDetails;
10
+ amount: number;
11
+ totalAmount: number;
12
+ currency: string;
13
+ rdtCode?: string;
14
+ url?: string;
15
+ reference: string;
16
+ callBackUrl: string;
17
+ metadata: Record<string, unknown>;
18
+ localCurrency: string;
19
+ disablePaymentMethods: (name: string) => void;
20
+ restartTransactionProcess: () => void;
21
+ hidePaymentMethods: () => void;
22
+ retryingPayment: boolean;
23
+ };
24
+ declare class Transfer {
25
+ private container;
26
+ private contents;
27
+ private closeModal;
28
+ private customer;
29
+ private transferDetails;
30
+ private transferConfirmationProgress;
31
+ private transferConfirmationEnd;
32
+ private transferExpired;
33
+ mainLoader: PageLoader;
34
+ private warningScreen;
35
+ private successScreen;
36
+ private merchantPlanDetail;
37
+ private token;
38
+ private currency;
39
+ private amount;
40
+ private totalAmount;
41
+ private rdtCode?;
42
+ private url?;
43
+ private reference;
44
+ private _currentStep;
45
+ private activeRef;
46
+ private paymentResponse;
47
+ private timerId;
48
+ private abortController;
49
+ private callBackUrl;
50
+ private metadata;
51
+ private localCurrency;
52
+ private transactionIssuesScreen;
53
+ disablePaymentMethods: (name: string) => void;
54
+ private paymentResponseHeaders;
55
+ private restartTransactionProcess;
56
+ private hidePaymentMethods;
57
+ private retryingPayment;
58
+ isMaxRetriesReached: boolean;
59
+ isMobile: boolean;
60
+ errorText: string;
61
+ constructor({ amount, totalAmount, closeModal, container, customer, token, currency, rdtCode, url, reference, callBackUrl, metadata, localCurrency, disablePaymentMethods, restartTransactionProcess, hidePaymentMethods, retryingPayment, }: Props);
62
+ get currentStep(): number;
63
+ set currentStep(step: number);
64
+ attachInputListeners(): void;
65
+ onSentVerify(values: number): void;
66
+ verifyTransfer(): Promise<void>;
67
+ createTransfer(): Promise<void>;
68
+ goBackToMerchant(): void;
69
+ renderTransferContent(values?: GetMerchantDetailsTax): void;
70
+ private stopTimer;
71
+ stopProgressBar(): void;
72
+ copyToClipboard(text: string, element: Element): void;
73
+ destroyTimer(): void;
74
+ stopPolling(): void;
75
+ }
76
+ export default Transfer;