15 lines
429 B
TypeScript
15 lines
429 B
TypeScript
import { WalletTopUpPaymentSessionResponse } from "@interfaces";
|
|
import { apiClient } from "@services";
|
|
|
|
export interface TopupPayload {
|
|
amount: number,
|
|
paymentMethod: string
|
|
}
|
|
|
|
export const initializeWalletTopUpApi = async (
|
|
payload: TopupPayload): Promise<WalletTopUpPaymentSessionResponse> => {
|
|
return await apiClient.post<WalletTopUpPaymentSessionResponse>(
|
|
'/wallets/topup',
|
|
payload
|
|
);
|
|
}; |