@spot-flow/checkout-inline-js 0.1.47 → 0.1.49-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/api.d.ts +5 -0
- package/dist/checkout-class.d.ts +5 -1
- package/dist/checkout-inline.es.js +5749 -4938
- package/dist/checkout-inline.js +282 -272
- package/dist/constants.d.ts +105 -0
- package/dist/contexts/translate-context.d.ts +15 -0
- package/dist/data.d.ts +10 -26
- package/dist/index.css +1 -1
- package/dist/modules/Card.d.ts +11 -7
- package/dist/modules/EFT.d.ts +1 -1
- package/dist/modules/MobileMoney.d.ts +2 -1
- package/dist/modules/Transfer.d.ts +1 -0
- package/dist/types.d.ts +2 -6
- package/dist/utils/get-currency.d.ts +1 -0
- package/dist/utils/get-region-details.d.ts +4 -0
- package/dist/utils.d.ts +1 -0
- package/dist/views/card/avs-validation.d.ts +2 -0
- package/dist/views/shared/main-footer.d.ts +3 -0
- package/dist/views/shared/main-header.d.ts +3 -0
- package/dist/views/shared/main-page.d.ts +6 -3
- package/dist/views/shared/shared-error-page.d.ts +1 -1
- package/dist/views/shared/test-card.d.ts +5 -1
- package/package.json +1 -1
- package/dist/views/card/confirmation-progress.d.ts +0 -39
- package/dist/views/transfer/transfer-confirmation-one.d.ts +0 -13
- package/dist/views/transfer/transfer-confirmation-two.d.ts +0 -15
package/dist/api.d.ts
CHANGED
|
@@ -30,3 +30,8 @@ export declare const chargePayment: (token: string, reference: string, rdtCode?:
|
|
|
30
30
|
headers: Headers;
|
|
31
31
|
data: PaymentResponseData;
|
|
32
32
|
}>;
|
|
33
|
+
export declare const translateText: (payload: {
|
|
34
|
+
text: string | Array<string>;
|
|
35
|
+
source?: string;
|
|
36
|
+
target: string;
|
|
37
|
+
}) => Promise<any>;
|
package/dist/checkout-class.d.ts
CHANGED
|
@@ -28,12 +28,16 @@ declare class CheckoutForm {
|
|
|
28
28
|
localCurrency: string;
|
|
29
29
|
countryCode?: string;
|
|
30
30
|
mode?: "test" | "live";
|
|
31
|
+
rawPaymentMethodTexts: Record<string, string>;
|
|
32
|
+
translatedPMTexts: Record<string, string>;
|
|
31
33
|
constructor();
|
|
32
34
|
closePayment(): void;
|
|
33
35
|
getDeviceType(): "Mobile" | "Tablet" | "Desktop";
|
|
34
|
-
setup(config:
|
|
36
|
+
setup(config: SpotflowProps): void;
|
|
35
37
|
private getAvailableChannels;
|
|
36
38
|
private getPlanDetails;
|
|
39
|
+
render(validChannels: string[], disabledChannels: string[]): void;
|
|
40
|
+
updateMethodsOptionsTexts(methods: string[]): Promise<void>;
|
|
37
41
|
showErrorIcon(): void;
|
|
38
42
|
closeModal(): void;
|
|
39
43
|
}
|