@proximafortedev/payxy-payment-gateway-core 1.0.2 → 1.0.3
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/README.md +4 -1
- package/dist/index.d.ts +1 -483
- package/dist/payxy-payment-gateway-core.css +1 -1
- package/dist/payxy.es.js +38143 -13113
- package/dist/payxy.es.js.map +1 -1
- package/dist/payxy.umd.js +247 -30
- package/dist/payxy.umd.js.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ const payxy = new Payxy({
|
|
|
83
83
|
env: "test", // Options: 'test', 'staging', 'prod', 'development'
|
|
84
84
|
accessCode: "YOUR_PAYMENT_ACCESS_CODE",
|
|
85
85
|
onSuccess: (data) => console.log("Payment Successful:", data),
|
|
86
|
-
onError: (error) => console.error("Payment Failed:", error)
|
|
86
|
+
onError: (error) => console.error("Payment Failed:", error),
|
|
87
87
|
});
|
|
88
88
|
|
|
89
89
|
// Launch the payment process
|
|
@@ -99,6 +99,7 @@ payxy.init();
|
|
|
99
99
|
The `Dockerfile` is optimized for multi-environment builds. It uses Nginx to serve the static artifacts.
|
|
100
100
|
|
|
101
101
|
**Build Command:**
|
|
102
|
+
|
|
102
103
|
```bash
|
|
103
104
|
docker build \
|
|
104
105
|
--build-arg VITE_ENV=prod \
|
|
@@ -110,10 +111,12 @@ docker build \
|
|
|
110
111
|
### GitHub Actions (CI/CD)
|
|
111
112
|
|
|
112
113
|
The workflow in `.github/workflows/main.yml` automatically builds and deploys the gateway based on branch pushes:
|
|
114
|
+
|
|
113
115
|
- **`staging` branch**: Deploys to the staging environment.
|
|
114
116
|
- **`prod` branch**: Deploys to the production environment.
|
|
115
117
|
|
|
116
118
|
**Required GitHub Secrets:**
|
|
119
|
+
|
|
117
120
|
- `TEST_VITE_API_BASE_URL`
|
|
118
121
|
- `STAGING_VITE_API_BASE_URL`
|
|
119
122
|
- `PROD_VITE_API_BASE_URL`
|
package/dist/index.d.ts
CHANGED
|
@@ -1,483 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { AxiosInstance } from 'axios';
|
|
3
|
-
import { AxiosRequestConfig } from 'axios';
|
|
4
|
-
import { Emitter } from 'mitt';
|
|
5
|
-
import { FC } from 'react';
|
|
6
|
-
import { FormInstance } from 'antd';
|
|
7
|
-
import { InputRef } from 'antd';
|
|
8
|
-
import { JSX } from 'react/jsx-runtime';
|
|
9
|
-
import { Method } from 'axios';
|
|
10
|
-
import { ModalFuncProps } from 'antd';
|
|
11
|
-
import { NoInfer as NoInfer_2 } from '@tanstack/query-core';
|
|
12
|
-
import { PropsWithChildren } from 'react';
|
|
13
|
-
import { ReactNode } from 'react';
|
|
14
|
-
import { RefObject } from 'react';
|
|
15
|
-
import { RuleObject } from 'antd/es/form';
|
|
16
|
-
import * as signalR from '@microsoft/signalr';
|
|
17
|
-
import { StoreApi } from 'zustand';
|
|
18
|
-
import { ThemeConfig } from 'antd';
|
|
19
|
-
import { UseBoundStore } from 'zustand';
|
|
20
|
-
import { UseMutationOptions } from '@tanstack/react-query';
|
|
21
|
-
import { UseMutationResult } from '@tanstack/react-query';
|
|
22
|
-
import { UseQueryOptions } from '@tanstack/react-query';
|
|
23
|
-
import { UseQueryResult } from '@tanstack/react-query';
|
|
24
|
-
|
|
25
|
-
export declare const AntdProvider: FC<PropsWithChildren>;
|
|
26
|
-
|
|
27
|
-
export declare const apiClient: AxiosInstance;
|
|
28
|
-
|
|
29
|
-
export declare type ApiError = AxiosError<BaseApiError>;
|
|
30
|
-
|
|
31
|
-
export declare interface ApiResponse<T> {
|
|
32
|
-
responseCode: string;
|
|
33
|
-
responseMessage: string;
|
|
34
|
-
data: T;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export declare const App: () => JSX.Element;
|
|
38
|
-
|
|
39
|
-
export declare type AppEvents = {
|
|
40
|
-
"payment-method:selected": number;
|
|
41
|
-
"payment-info:loaded": PaymentInfoData;
|
|
42
|
-
"payment:terminal": undefined;
|
|
43
|
-
"signalr:connected": undefined;
|
|
44
|
-
"signalr:reconnecting": undefined;
|
|
45
|
-
"signalr:reconnected": string | undefined;
|
|
46
|
-
"signalr:closed": Error | undefined;
|
|
47
|
-
"signalr:error": unknown;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export declare const BankTransfer: () => JSX.Element;
|
|
51
|
-
|
|
52
|
-
export declare interface BaseApiError {
|
|
53
|
-
message: string;
|
|
54
|
-
code: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export declare interface Bin {
|
|
58
|
-
Id: number;
|
|
59
|
-
Name: string;
|
|
60
|
-
MinPanLength: number;
|
|
61
|
-
MaxPanLength: number;
|
|
62
|
-
BinRangeMinimum: number;
|
|
63
|
-
BinRangeMaximum: number;
|
|
64
|
-
BinImage: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export declare const Card: () => JSX.Element;
|
|
68
|
-
|
|
69
|
-
export declare interface Customization {
|
|
70
|
-
bodyColor: string;
|
|
71
|
-
buttonColor: string;
|
|
72
|
-
footerText: string;
|
|
73
|
-
footerLink: string;
|
|
74
|
-
footerLogo: string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export declare interface DeviceInformation {
|
|
78
|
-
httpBrowserLanguage?: string;
|
|
79
|
-
httpBrowserJavaEnabled?: boolean;
|
|
80
|
-
httpBrowserJavaScriptEnabled?: boolean;
|
|
81
|
-
httpBrowserColorDepth?: number;
|
|
82
|
-
httpBrowserScreenHeight?: number;
|
|
83
|
-
httpBrowserScreenWidth?: number;
|
|
84
|
-
httpBrowserTimeDifference?: string;
|
|
85
|
-
userAgentBrowserValue?: string;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export declare const emitter: Emitter<AppEvents>;
|
|
89
|
-
|
|
90
|
-
export declare const errorModalProps: (callbackUrl?: string, data?: ValidatePaymentResponse | MakePaymentResponse) => ModalFuncProps;
|
|
91
|
-
|
|
92
|
-
export declare const formatPrice: (amount: number | string, currency?: string) => string;
|
|
93
|
-
|
|
94
|
-
export declare const getConnection: () => signalR.HubConnection | null;
|
|
95
|
-
|
|
96
|
-
export declare const isStoreUrl: (url?: string) => boolean;
|
|
97
|
-
|
|
98
|
-
export declare const isValidUrl: (str: string | undefined) => boolean;
|
|
99
|
-
|
|
100
|
-
export declare interface MakePaymentRequest {
|
|
101
|
-
transactionId?: string;
|
|
102
|
-
paymentType?: number;
|
|
103
|
-
mode?: number;
|
|
104
|
-
bankCode?: string;
|
|
105
|
-
accountNumber?: string;
|
|
106
|
-
accountName?: string;
|
|
107
|
-
cardNumber?: string;
|
|
108
|
-
cvv?: string;
|
|
109
|
-
expiryMonth?: string;
|
|
110
|
-
expiryYear?: string;
|
|
111
|
-
expiryDate?: string;
|
|
112
|
-
currency?: string;
|
|
113
|
-
country?: string;
|
|
114
|
-
amount?: string;
|
|
115
|
-
email?: string;
|
|
116
|
-
phoneNumber?: string;
|
|
117
|
-
firstName?: string;
|
|
118
|
-
lastName?: string;
|
|
119
|
-
ip?: string;
|
|
120
|
-
dateOfBirth?: string;
|
|
121
|
-
bvn?: string;
|
|
122
|
-
redirectUrl?: string;
|
|
123
|
-
billingZip?: string;
|
|
124
|
-
billingCity?: string;
|
|
125
|
-
deviceFingerPrint?: string;
|
|
126
|
-
billingAddress?: string;
|
|
127
|
-
billingState?: string;
|
|
128
|
-
billingCountry?: string;
|
|
129
|
-
pin?: string;
|
|
130
|
-
callbackUrl?: string;
|
|
131
|
-
productId?: string;
|
|
132
|
-
productDescription?: string;
|
|
133
|
-
pageKey?: string;
|
|
134
|
-
productKey?: string;
|
|
135
|
-
authenticationResend?: string;
|
|
136
|
-
merchantType?: number;
|
|
137
|
-
metaData?: string;
|
|
138
|
-
narration?: string;
|
|
139
|
-
merchantId?: number;
|
|
140
|
-
cardBrand?: string;
|
|
141
|
-
token?: string;
|
|
142
|
-
entryType?: number;
|
|
143
|
-
deviceInformation?: DeviceInformation;
|
|
144
|
-
walletOption?: string;
|
|
145
|
-
invoiceId?: string;
|
|
146
|
-
isRecurring?: boolean;
|
|
147
|
-
isStaticRoute?: number;
|
|
148
|
-
ussdString?: string;
|
|
149
|
-
encrypted?: string;
|
|
150
|
-
accessCode?: string;
|
|
151
|
-
cardHolderName?: string;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
export declare interface MakePaymentResponse {
|
|
155
|
-
responseCode: string;
|
|
156
|
-
responseMessage: string;
|
|
157
|
-
authenticatePaymentResponseCode: string;
|
|
158
|
-
authenticatePaymentResponseMessage: string;
|
|
159
|
-
transactionId: string;
|
|
160
|
-
providerReference: string;
|
|
161
|
-
transactionNumber: string;
|
|
162
|
-
isWebhookUrlSet: boolean;
|
|
163
|
-
accountNumber: string;
|
|
164
|
-
accountName: string;
|
|
165
|
-
bankName: string;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
declare interface PaymentGatewayLayoutProps extends PropsWithChildren {
|
|
169
|
-
heading?: string;
|
|
170
|
-
subtext?: string;
|
|
171
|
-
showSidebar?: boolean;
|
|
172
|
-
footer?: ReactNode;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export declare const PaymentGatewayLayoutWrapper: FC<PaymentGatewayLayoutProps>;
|
|
176
|
-
|
|
177
|
-
export declare interface PaymentInfoData {
|
|
178
|
-
email: string;
|
|
179
|
-
amount: string;
|
|
180
|
-
transactionId: string;
|
|
181
|
-
link: string;
|
|
182
|
-
reference: string;
|
|
183
|
-
businessName: string;
|
|
184
|
-
isActive: boolean;
|
|
185
|
-
cardPayment: boolean;
|
|
186
|
-
accountPayment: boolean;
|
|
187
|
-
ussdPayment: boolean;
|
|
188
|
-
qrPayment: boolean;
|
|
189
|
-
eNaira: boolean;
|
|
190
|
-
walletPayment: boolean;
|
|
191
|
-
bankTrasferPayment: boolean;
|
|
192
|
-
webHookUrl: string;
|
|
193
|
-
token: string;
|
|
194
|
-
currency: string;
|
|
195
|
-
callbackUrl: string;
|
|
196
|
-
publicKey: string;
|
|
197
|
-
transactionHistoryId: number;
|
|
198
|
-
productId: string;
|
|
199
|
-
productDescription: string;
|
|
200
|
-
totalAmount: string;
|
|
201
|
-
isChargeTransferedToCustomer: boolean;
|
|
202
|
-
isPaymentPageCustomizationEnabled: boolean;
|
|
203
|
-
customization: Customization;
|
|
204
|
-
merchantCode: string;
|
|
205
|
-
firstName: string;
|
|
206
|
-
lastName: string;
|
|
207
|
-
billingCountry: string;
|
|
208
|
-
billingState: string;
|
|
209
|
-
billingZip: string;
|
|
210
|
-
billingCity: string;
|
|
211
|
-
billingAddress: string;
|
|
212
|
-
phoneNumber?: string;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export declare const paymentOptions: {
|
|
216
|
-
value: number;
|
|
217
|
-
label: string;
|
|
218
|
-
key: string;
|
|
219
|
-
}[];
|
|
220
|
-
|
|
221
|
-
declare interface PaymentStore {
|
|
222
|
-
env: PayxyEnv;
|
|
223
|
-
paymentInfo: PaymentInfoData | null;
|
|
224
|
-
selectedSavedCard: SavedCards | null;
|
|
225
|
-
cardOption: string;
|
|
226
|
-
isMakePaymentSuccessful: boolean | null;
|
|
227
|
-
setEnv: (env: PayxyEnv) => void;
|
|
228
|
-
setMakePaymentSuccessful: (value: boolean | null) => void;
|
|
229
|
-
setCardOption: (value: string) => void;
|
|
230
|
-
setSelectedSavedCard: (card: SavedCards | null) => void;
|
|
231
|
-
setPaymentInfo: (info: PaymentInfoData) => void;
|
|
232
|
-
clearPaymentInfo: () => void;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
declare class Payxy {
|
|
236
|
-
private options;
|
|
237
|
-
constructor(options: PayxyOptions);
|
|
238
|
-
/**
|
|
239
|
-
* Launch the payment gateway
|
|
240
|
-
*/
|
|
241
|
-
init(): void;
|
|
242
|
-
}
|
|
243
|
-
export { Payxy }
|
|
244
|
-
export default Payxy;
|
|
245
|
-
|
|
246
|
-
export declare type PayxyEnv = "test" | "prod" | "staging" | "development";
|
|
247
|
-
|
|
248
|
-
export declare interface PayxyOptions {
|
|
249
|
-
env?: PayxyEnv;
|
|
250
|
-
accessCode: string;
|
|
251
|
-
onSuccess?: (data: any) => void;
|
|
252
|
-
onError?: (data: any) => void;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export declare const ReactQueryProvider: FC<PropsWithChildren>;
|
|
256
|
-
|
|
257
|
-
export declare interface RemoveCardRequest {
|
|
258
|
-
pan: string;
|
|
259
|
-
email: string;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export declare interface SavedCardRequest {
|
|
263
|
-
cardPan: string;
|
|
264
|
-
expiryMonth: string;
|
|
265
|
-
expiryYear: string;
|
|
266
|
-
cvv: string;
|
|
267
|
-
cardBrand: string;
|
|
268
|
-
firstname: string;
|
|
269
|
-
lastname: string;
|
|
270
|
-
billingZip: string;
|
|
271
|
-
billingCity: string;
|
|
272
|
-
billingAddress: string;
|
|
273
|
-
billingState: string;
|
|
274
|
-
billingCountry: string;
|
|
275
|
-
cardHolderName: string;
|
|
276
|
-
email: string;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export declare interface SavedCards {
|
|
280
|
-
cardPan: string;
|
|
281
|
-
expiryMonth: string;
|
|
282
|
-
expiryYear: string;
|
|
283
|
-
cvv: string;
|
|
284
|
-
cardBrand: string;
|
|
285
|
-
email: string;
|
|
286
|
-
billingZip: string;
|
|
287
|
-
billingCity: string;
|
|
288
|
-
billingAddress: string;
|
|
289
|
-
billingState: string;
|
|
290
|
-
billingCountry: string;
|
|
291
|
-
cardHolderName: string;
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
declare class SecureStorageUtil {
|
|
295
|
-
private getRawStorage;
|
|
296
|
-
private saveRawStorage;
|
|
297
|
-
setItem<T>(key: string, value: T): void;
|
|
298
|
-
getItem<T>(key: string): T | null;
|
|
299
|
-
removeItem(key: string): void;
|
|
300
|
-
clear(): void;
|
|
301
|
-
hasItem(key: string): boolean;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
export declare const SideBar: FC<SideBarProps>;
|
|
305
|
-
|
|
306
|
-
declare interface SideBarProps {
|
|
307
|
-
paymentInfo: PaymentInfoData;
|
|
308
|
-
onSelect?: (value: number) => void;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export declare const startConnection: () => Promise<signalR.HubConnection>;
|
|
312
|
-
|
|
313
|
-
export declare const stopConnection: () => Promise<void>;
|
|
314
|
-
|
|
315
|
-
export declare const storageHelper: SecureStorageUtil;
|
|
316
|
-
|
|
317
|
-
export declare const successModalProps: (callbackUrl?: string, data?: ValidatePaymentResponse) => ModalFuncProps;
|
|
318
|
-
|
|
319
|
-
export declare const themeConfig: ThemeConfig;
|
|
320
|
-
|
|
321
|
-
export declare const useCardInfo: () => {
|
|
322
|
-
cardImg: () => string;
|
|
323
|
-
cardNumberValidator: (_rule: RuleObject, value: string) => Promise<void>;
|
|
324
|
-
formatCardNumber: (value: string) => string;
|
|
325
|
-
getCardNumberMaxLength: () => 24 | 19 | 23 | 22;
|
|
326
|
-
validateAndFormatExpiryDate: (cardExpiry: string) => string;
|
|
327
|
-
validateExpiryDate: (cardExpiry: string) => boolean | string;
|
|
328
|
-
handleCardInput: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
329
|
-
handleCardExpiry: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
330
|
-
handleOnSavedCard: () => void;
|
|
331
|
-
handleCardPayment: (request: Record<string, string>) => Promise<MakePaymentResponse | undefined>;
|
|
332
|
-
isSavingCard: boolean;
|
|
333
|
-
form: FormInstance<any>;
|
|
334
|
-
paymentInfo: PaymentInfoData | null;
|
|
335
|
-
isFormIncomplete: boolean;
|
|
336
|
-
cardNumber: any;
|
|
337
|
-
expiryDate: any;
|
|
338
|
-
cvv: any;
|
|
339
|
-
cardHolderName: any;
|
|
340
|
-
cardType: string;
|
|
341
|
-
isPending: boolean;
|
|
342
|
-
data: MakePaymentResponse | undefined;
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
export declare const useDisableEvent: () => {
|
|
346
|
-
cardNumberInputRef: RefObject<InputRef | null>;
|
|
347
|
-
cvvInputRef: RefObject<InputRef | null>;
|
|
348
|
-
expiryInputRef: RefObject<InputRef | null>;
|
|
349
|
-
};
|
|
350
|
-
|
|
351
|
-
export declare const useGetPaymentInfo: () => UseQueryResult<ApiResponse<PaymentInfoData>, ApiError>;
|
|
352
|
-
|
|
353
|
-
export declare const useGetSavedCards: () => UseQueryResult<ApiResponse<SavedCards[]>, ApiError>;
|
|
354
|
-
|
|
355
|
-
/**
|
|
356
|
-
* @example
|
|
357
|
-
*
|
|
358
|
-
* const { mutate, isLoading, error } = useHttpMutation({
|
|
359
|
-
* url: "/api/user",
|
|
360
|
-
* method: "POST",
|
|
361
|
-
* onSuccess: () => queryClient.invalidateQueries("user"),
|
|
362
|
-
* onError: (error) => console.error(error),
|
|
363
|
-
* });
|
|
364
|
-
*/
|
|
365
|
-
export declare function useHttpMutation<Data = unknown, Response = unknown>(options?: UseHttpMutationOptions<UseHttpMutationFunctionProps<Data>, Response>): UseMutationResult<Response, AxiosError<unknown, any>, UseHttpMutationFunctionProps<Data>, unknown>;
|
|
366
|
-
|
|
367
|
-
export declare type UseHttpMutationAxiosOptions<Data> = Pick<AxiosRequestConfig<Data>, "url" | "data" | "method" | "headers">;
|
|
368
|
-
|
|
369
|
-
export declare type UseHttpMutationFunctionProps<Data> = {
|
|
370
|
-
data?: Data;
|
|
371
|
-
config?: AxiosRequestConfig;
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
declare type UseHttpMutationOptions<Data, Response> = {
|
|
375
|
-
url?: string;
|
|
376
|
-
data?: Data;
|
|
377
|
-
method?: Method | string;
|
|
378
|
-
headers?: Record<string, string>;
|
|
379
|
-
axiosInstance?: AxiosInstance;
|
|
380
|
-
isAuthorized?: boolean;
|
|
381
|
-
enableEntityId?: boolean;
|
|
382
|
-
} & UseMutationOptions<Response, AxiosError, Data>;
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* @example
|
|
386
|
-
* const { data, isLoading, error } = useHttpQuery({
|
|
387
|
-
* url: "/api/user",
|
|
388
|
-
* enabled: !!token,
|
|
389
|
-
* select: (data) => data.user,
|
|
390
|
-
* headers: {
|
|
391
|
-
* Authorization: `Bearer ${token}`,
|
|
392
|
-
* }
|
|
393
|
-
* }
|
|
394
|
-
*/
|
|
395
|
-
export declare function useHttpQuery<Data = unknown, Response = unknown, Selected = Response, Error = ApiError>({ api, url, data, params, headers, responseType, method, ...queryOptions }: UseHttpQueryOptions<Data, Response, Selected, Error>): UseQueryResult<NoInfer_2<Selected>, Error>;
|
|
396
|
-
|
|
397
|
-
export declare type UseHttpQueryAxiosOptions<Data> = Pick<AxiosRequestConfig<Data>, "url" | "data" | "method" | "headers" | "params" | "responseType">;
|
|
398
|
-
|
|
399
|
-
export declare type UseHttpQueryOptions<Data, Response, Selected, Error> = UseHttpQueryAxiosOptions<Data> & UseQueryOptions<Response, Error, Selected> & {
|
|
400
|
-
/** Optional axios instance */
|
|
401
|
-
api?: AxiosInstance;
|
|
402
|
-
};
|
|
403
|
-
|
|
404
|
-
export declare const useMakePayment: () => {
|
|
405
|
-
isPending: boolean;
|
|
406
|
-
data: MakePaymentResponse | undefined;
|
|
407
|
-
onMakePayment: (form: MakePaymentRequest) => Promise<MakePaymentResponse | undefined>;
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
export declare const usePaymentPolling: ({ validatePaymentData, makePaymentData, onValidatePayment, validatePending, timeValue, }: {
|
|
411
|
-
validatePaymentData: {
|
|
412
|
-
responseCode: string;
|
|
413
|
-
responseMessage: string;
|
|
414
|
-
} | undefined;
|
|
415
|
-
makePaymentData: MakePaymentResponse | undefined;
|
|
416
|
-
onValidatePayment: (data: ValidatePaymentRequest) => Promise<{
|
|
417
|
-
responseCode: string;
|
|
418
|
-
responseMessage: string;
|
|
419
|
-
} | undefined>;
|
|
420
|
-
validatePending: boolean;
|
|
421
|
-
timeValue: number;
|
|
422
|
-
}) => {
|
|
423
|
-
isPolling: boolean;
|
|
424
|
-
};
|
|
425
|
-
|
|
426
|
-
export declare const useRemoveCard: () => {
|
|
427
|
-
isPending: boolean;
|
|
428
|
-
data: {
|
|
429
|
-
responseCode: string;
|
|
430
|
-
responseMessage: string;
|
|
431
|
-
} | undefined;
|
|
432
|
-
onRemoveCard: (data: RemoveCardRequest) => Promise<{
|
|
433
|
-
responseCode: string;
|
|
434
|
-
responseMessage: string;
|
|
435
|
-
} | undefined>;
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
export declare const useSavedCard: () => {
|
|
439
|
-
isPending: boolean;
|
|
440
|
-
data: {
|
|
441
|
-
responseCode: string;
|
|
442
|
-
responseMessage: string;
|
|
443
|
-
} | undefined;
|
|
444
|
-
onSavedCard: (data: SavedCardRequest) => Promise<{
|
|
445
|
-
responseCode: string;
|
|
446
|
-
responseMessage: string;
|
|
447
|
-
} | undefined>;
|
|
448
|
-
};
|
|
449
|
-
|
|
450
|
-
export declare const useStore: UseBoundStore<StoreApi<PaymentStore>>;
|
|
451
|
-
|
|
452
|
-
export declare const useTimer: (seconds?: number) => {
|
|
453
|
-
timeRemaining: string;
|
|
454
|
-
resetTimer: () => void;
|
|
455
|
-
timeValue: number;
|
|
456
|
-
};
|
|
457
|
-
|
|
458
|
-
export declare const useTransactionTimeout: (timeValue: number, callbackUrl?: string) => void;
|
|
459
|
-
|
|
460
|
-
export declare const useValidatePayment: () => {
|
|
461
|
-
onValidatePayment: (data: ValidatePaymentRequest) => Promise<ValidatePaymentResponse | undefined>;
|
|
462
|
-
isPending: boolean;
|
|
463
|
-
data: ValidatePaymentResponse | undefined;
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
export declare const USSD: () => JSX.Element;
|
|
467
|
-
|
|
468
|
-
export declare interface ValidatePaymentRequest {
|
|
469
|
-
transactionId: string;
|
|
470
|
-
providerReference: string;
|
|
471
|
-
otp?: string;
|
|
472
|
-
entryType?: number;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
export declare interface ValidatePaymentResponse {
|
|
476
|
-
responseCode: string;
|
|
477
|
-
responseMessage: string;
|
|
478
|
-
orderReference: string;
|
|
479
|
-
chargedAmount: string;
|
|
480
|
-
providerReference: string;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
export { }
|
|
1
|
+
export {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ant-radio-wrapper{border-bottom:1px solid #00000010!important;padding-top:3rem;padding-bottom:2rem;width:100%!important}.ant-radio-wrapper:first-child{padding-top:0!important}.ant-radio-wrapper .ant-radio-checked .ant-radio-inner{border:5px solid #e1edff!important}.ant-radio-wrapper .ant-radio-inner:after{background-color:#0569ff!important}
|
|
1
|
+
.ant-radio-wrapper{border-bottom:1px solid #00000010!important;padding-top:3rem;padding-bottom:2rem;width:100%!important}.ant-radio-wrapper:first-child{padding-top:0!important}.ant-radio-wrapper .ant-radio-checked .ant-radio-inner{border:5px solid #e1edff!important}.ant-radio-wrapper .ant-radio-inner:after{background-color:#0569ff!important}.ant-tabs-tab{font-weight:300!important}
|