@dropp.cc/payment-sdk 1.0.30 → 1.0.32
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/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface SDKConfig {
|
|
|
10
10
|
|
|
11
11
|
export interface DisplayItem {
|
|
12
12
|
label: string;
|
|
13
|
-
value: number;
|
|
13
|
+
value: number | string;
|
|
14
14
|
type: 'item' | 'subTotal' | 'otherCharges' | 'discount';
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -86,10 +86,22 @@ export interface AccountStatusResult {
|
|
|
86
86
|
[key: string]: unknown;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
export interface UUIDDetailsResult {
|
|
90
|
+
success: boolean;
|
|
91
|
+
uuid: string;
|
|
92
|
+
message: string;
|
|
93
|
+
data: Record<string, unknown> | null;
|
|
94
|
+
rawResponse: Record<string, unknown> | null;
|
|
95
|
+
error: string | null;
|
|
96
|
+
responseCode: number | null;
|
|
97
|
+
}
|
|
98
|
+
|
|
89
99
|
export declare class DroppPaymentSDK {
|
|
90
100
|
constructor(config: SDKConfig);
|
|
91
101
|
|
|
92
102
|
pay(options: PaymentOptions): Promise<PaymentResult>;
|
|
103
|
+
scanPaymentDetails(): Promise<UUIDDetailsResult>;
|
|
104
|
+
fetchPaymentDetails(uuid: string): Promise<UUIDDetailsResult>;
|
|
93
105
|
initialize(): Promise<InitializeResult>;
|
|
94
106
|
closePayment(): void;
|
|
95
107
|
dashboard(options?: HostedPageOptions): Promise<HostedPageResult>;
|
|
@@ -113,6 +125,8 @@ export declare const PAYMENT_TYPES: Record<'STANDARD' | 'PREAUTH' | 'RECURRING',
|
|
|
113
125
|
export declare const Dropp: {
|
|
114
126
|
init(config: SDKConfig): Promise<InitResult>;
|
|
115
127
|
pay(options: PaymentOptions): Promise<PaymentResult>;
|
|
128
|
+
scanPaymentDetails(): Promise<UUIDDetailsResult>;
|
|
129
|
+
fetchPaymentDetails(uuid: string): Promise<UUIDDetailsResult>;
|
|
116
130
|
dashboard(options?: HostedPageOptions): Promise<HostedPageResult>;
|
|
117
131
|
open(moduleId: string, options?: HostedPageOptions): Promise<HostedPageResult>;
|
|
118
132
|
unlinkAccount(options?: HostedPageOptions): Promise<HostedPageResult>;
|
package/package.json
CHANGED