@meijering/nestjs-molliepayment
Version:
NestJs Wrapper around Mollie Api
28 lines (27 loc) • 595 B
TypeScript
import { Payment } from '@mollie/api-client';
interface IMeta {
webhook: string;
currency?: string;
}
interface IOrder {
order_id: string;
currency?: string;
value: string;
description: string;
email: string;
redirect: string;
cancel?: string;
}
interface IError {
error: any;
_links?: {
checkout: string;
};
}
export declare class PaymentsService {
private readonly apiKey;
constructor(apiKey: string);
private readonly mollieClient;
doPayment(order: Partial<IOrder>, meta: IMeta): Promise<Payment | IError>;
}
export {};