@spot-flow/checkout-inline-js 0.0.4 → 0.0.6
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 +30 -0
- package/dist/checkout-inline.es.js +1673 -0
- package/dist/checkout-inline.js +131 -130
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1 -30
- package/package.json +22 -6
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { default as Card } from './modules/Card';
|
|
2
|
+
import { default as Transfer } from './modules/Transfer';
|
|
3
|
+
import { default as Ussd } from './modules/Ussd';
|
|
4
|
+
|
|
5
|
+
declare class CheckoutForm {
|
|
6
|
+
modalContainer: HTMLDivElement;
|
|
7
|
+
currentPaymentMethod: number;
|
|
8
|
+
currentStep: number;
|
|
9
|
+
container: HTMLDivElement;
|
|
10
|
+
card: Card;
|
|
11
|
+
transfer: Transfer;
|
|
12
|
+
ussd: Ussd;
|
|
13
|
+
merchantKey: string;
|
|
14
|
+
email: string;
|
|
15
|
+
amount: number;
|
|
16
|
+
isMobile: boolean;
|
|
17
|
+
constructor(merchantKey: string, email: string, amount: number);
|
|
18
|
+
attachInputListeners(): void;
|
|
19
|
+
displayTabLayout(): void;
|
|
20
|
+
private updatePaymentMethodView;
|
|
21
|
+
renderPaymentMethodContent(): void | "";
|
|
22
|
+
setCurrentPaymentMethod(index: number): void;
|
|
23
|
+
private cleanup;
|
|
24
|
+
closeModal(): void;
|
|
25
|
+
setup(): void;
|
|
26
|
+
private mobileContainerContent;
|
|
27
|
+
private viewMobileOptions;
|
|
28
|
+
private displayPaymentWarningText;
|
|
29
|
+
}
|
|
30
|
+
export { CheckoutForm };
|