@spot-flow/checkout-inline-js 0.1.37 → 0.1.38-dev.2
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-class.d.ts +1 -0
- package/dist/checkout-inline.es.js +1368 -1030
- package/dist/checkout-inline.js +250 -42
- package/dist/modules/MobileMoney.d.ts +4 -1
- package/dist/types/types.d.ts +2 -0
- package/dist/types.d.ts +1 -0
- package/dist/utils/redirectTo.d.ts +1 -1
- package/dist/views/mobile-money/mobile-money-form.d.ts +3 -0
- package/dist/views/shared/main-page.d.ts +3 -1
- package/package.json +1 -1
|
@@ -25,6 +25,7 @@ type Props = {
|
|
|
25
25
|
showPaymentMethods: () => void;
|
|
26
26
|
restartTransactionProcess: () => void;
|
|
27
27
|
retryingPayment: boolean;
|
|
28
|
+
countryCode?: string;
|
|
28
29
|
};
|
|
29
30
|
declare class MobileMoney {
|
|
30
31
|
private contents;
|
|
@@ -63,13 +64,15 @@ declare class MobileMoney {
|
|
|
63
64
|
private retryingPayment;
|
|
64
65
|
isMaxRetriesReached: boolean;
|
|
65
66
|
isMobile: boolean;
|
|
66
|
-
|
|
67
|
+
countryCode?: string;
|
|
68
|
+
constructor({ container, merchantKey, localCurrency, metadata, callBackUrl, rdtCode, reference, onSuccess, url, email, amount, totalAmount, token, currency, disablePaymentMethods, hidePaymentMethods, showPaymentMethods, onClose, restartTransactionProcess, retryingPayment, countryCode, }: Props);
|
|
67
69
|
get currentStep(): number;
|
|
68
70
|
set currentStep(step: number);
|
|
69
71
|
attachInputListeners(): void;
|
|
70
72
|
createMobileMoney(e: Event, values: {
|
|
71
73
|
code: string;
|
|
72
74
|
phoneNumber: string;
|
|
75
|
+
otp?: string;
|
|
73
76
|
}): Promise<void>;
|
|
74
77
|
showLoader(): void;
|
|
75
78
|
submitOtp(e: Event, values: string): void;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export type PaymentRequestPayload = {
|
|
|
24
24
|
metadata?: Record<string, unknown>;
|
|
25
25
|
isCheckout: boolean;
|
|
26
26
|
taxQuoteId?: string;
|
|
27
|
+
countryCode?: string;
|
|
27
28
|
};
|
|
28
29
|
export type CardDetails = {
|
|
29
30
|
pan: string;
|
|
@@ -46,6 +47,7 @@ export type MobileMoneyPaymentRequestPayload = Prettify<PaymentRequestPayload &
|
|
|
46
47
|
code: string;
|
|
47
48
|
name: string;
|
|
48
49
|
phoneNumber: string;
|
|
50
|
+
otp?: string;
|
|
49
51
|
}>;
|
|
50
52
|
}>;
|
|
51
53
|
export type AuthorizeCardPaymentRequestPayload = {
|
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PaymentResponseData } from '../types/types';
|
|
2
2
|
|
|
3
|
-
export declare function redirectTo(values: PaymentResponseData, headers: Headers, callBackUrl
|
|
3
|
+
export declare function redirectTo(values: PaymentResponseData, headers: Headers, callBackUrl?: string): void;
|
|
@@ -5,6 +5,7 @@ import { PaymentWarning } from '../shared/payment-warning';
|
|
|
5
5
|
type MobileMoneyValueType = {
|
|
6
6
|
code: string;
|
|
7
7
|
phoneNumber: string;
|
|
8
|
+
otp?: string;
|
|
8
9
|
};
|
|
9
10
|
type Props = {
|
|
10
11
|
container: HTMLElement;
|
|
@@ -20,6 +21,7 @@ type Props = {
|
|
|
20
21
|
localCurrency?: string;
|
|
21
22
|
restartTransactionProcess: () => void;
|
|
22
23
|
merchantDetails: GetMerchantDetailsTax;
|
|
24
|
+
countryCode?: string;
|
|
23
25
|
};
|
|
24
26
|
export declare class MobileMoneyForm {
|
|
25
27
|
container: HTMLElement | Element;
|
|
@@ -37,6 +39,7 @@ export declare class MobileMoneyForm {
|
|
|
37
39
|
private currency;
|
|
38
40
|
private restartTransactionProcess;
|
|
39
41
|
private merchantDetails;
|
|
42
|
+
countryCode?: string;
|
|
40
43
|
constructor(props: Props);
|
|
41
44
|
private validateForm;
|
|
42
45
|
attachListener(): void;
|
|
@@ -24,6 +24,7 @@ type Props = {
|
|
|
24
24
|
callBackUrl: string;
|
|
25
25
|
metadata: Record<string, unknown>;
|
|
26
26
|
localCurrency: string;
|
|
27
|
+
countryCode?: string;
|
|
27
28
|
closePayment: () => void;
|
|
28
29
|
};
|
|
29
30
|
export declare class MainPageScreen {
|
|
@@ -61,7 +62,8 @@ export declare class MainPageScreen {
|
|
|
61
62
|
closePayment: () => void;
|
|
62
63
|
retryingPayment: boolean;
|
|
63
64
|
totalAmount: number;
|
|
64
|
-
|
|
65
|
+
countryCode?: string;
|
|
66
|
+
constructor({ container, email, phoneNumber, code, encryption, merchantKey, modalContainer, amount, planId, rdtCode, url, reference, callBackUrl, metadata, localCurrency, closePayment, countryCode, }: Props);
|
|
65
67
|
mountScreen(values: GetMerchantDetailsTax, currency: string, validChannels: Array<string>, disabledChannels: Array<string>): void;
|
|
66
68
|
private setupPaymentMethodButtons;
|
|
67
69
|
attachListeners(): void;
|