payvessel-checkout
Version:
A simple checkout integration for Payvessel.
19 lines (18 loc) • 678 B
TypeScript
import { ErrorResponse } from "./error-response";
import { OrderConfirmedResponse } from "./order-confirmed-response";
import { TransactionResponse } from "./transaction-response";
export type PaymentPayload = {
amount: string;
currency: string;
metadata: string | object;
customer_name: string;
customer_email: string;
customer_phone_number?: string;
redirect_url?: string;
reference?: string;
channels?: string[];
onSuccess?: (data: TransactionResponse) => void;
onError?: (err: ErrorResponse) => void;
onClose?: (transactionReference: string) => void;
onSuccessfulOrder?: (orderDetails: OrderConfirmedResponse) => void;
};