UNPKG

payvessel-checkout

Version:

A simple checkout integration for Payvessel.

15 lines (14 loc) 566 B
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; onSuccess?: (data: TransactionResponse) => void; onError?: (err: ErrorResponse) => void; onClose?: (transactionReference: string) => void; onSuccessfulOrder?: (orderDetails: OrderConfirmedResponse) => void; };