moneroo-nodejs-sdk
Version:
Official Node.js SDK for Moneroo payment integration in Africa
35 lines (34 loc) • 1.58 kB
TypeScript
/**
* Moneroo Node.js SDK
* Official Node.js SDK for Moneroo payment integration in Africa
*
* This SDK provides a simple interface to the Moneroo API for Node.js applications.
* It allows you to initialize payments and check transaction statuses.
*
* @module moneroo-nodejs-sdk
*/
import initiatePayment from './payment';
import checkTransactionStatus from './transaction';
import { PaymentMethods, PaymentMethodUtils } from './methods';
import type { PaymentMethod, PaymentMethodDetails } from './methods';
export * from './types';
export { initiatePayment, checkTransactionStatus };
export type { PaymentMethod, PaymentMethodDetails };
export { PaymentMethods, PaymentMethodUtils };
declare const monerooSdk: {
initiatePayment: typeof initiatePayment;
checkTransactionStatus: typeof checkTransactionStatus;
PaymentMethods: Record<PaymentMethod, PaymentMethodDetails>;
PaymentMethodUtils: {
getDetails: (method: PaymentMethod) => PaymentMethodDetails | undefined;
getAll: () => PaymentMethodDetails[];
getByCountry: (countryCode: string) => PaymentMethodDetails[];
getByCurrency: (currency: string) => PaymentMethodDetails[];
};
methods: Record<PaymentMethod, PaymentMethodDetails>;
getPaymentMethodDetails: (method: PaymentMethod) => PaymentMethodDetails | undefined;
getPaymentMethods: () => PaymentMethodDetails[];
getPaymentMethodsByCountry: (countryCode: string) => PaymentMethodDetails[];
getPaymentMethodsByCurrency: (currency: string) => PaymentMethodDetails[];
};
export default monerooSdk;