@collectapp/checkout-sdk
Version:
Collect Africa Checkout library
29 lines (28 loc) • 677 B
TypeScript
export interface CollectCheckoutParam {
email: string;
firstName: string;
lastName?: string;
reference: string;
amount: number;
currency?: string;
logo: string;
itemImage?: string;
publicKey: string;
paymentLinkCode?: string;
invoiceCode?: string;
planCode?: string;
localUrl?: string;
onClose?: Function;
onSuccess?: Function;
onError?: Function;
beforeClose?: Function;
}
/**
* Message event data structure for communication with the checkout iframe
*/
export interface CheckoutMessageData {
key: string;
type?: 'loading' | 'close' | 'success' | 'error';
data?: any;
[key: string]: any;
}