UNPKG

@payunit/nodejs-sdk

Version:

PayUnit Payment Processor SDK

81 lines 1.99 kB
export interface CheckoutInitializeRequest { cancel_url: string; success_url: string; notify_url?: string; currency: string; mode: 'payment' | 'subscription'; transaction_id: string; total_amount: number; items: Array<{ price_description: { unit_amount: number; }; product_description: { name: string; image_url?: string; about_product?: string; }; quantity: number; }>; meta?: { phone_number_collection: boolean; address_collection: boolean; }; } export interface CheckoutInitializeResponse { checkout_id: string; redirect: string; } export interface CheckoutPaymentRequest { checkout_id: string; customer: { email: string; phone: string; country?: string; name?: string; }; shipping: { address?: string; phone?: string; payment_method: string; payment_info: { phone: string; }; }; } export interface CheckoutPaymentResponse { checkout_id: string; transaction_id: string; mode: string; checkout_mode: string; status: string; phone_number_collection: boolean; address_collection: boolean; notify_url: string; checkout_card_redirect_url: string; cancel_url: string; success_url: string; total_amount: number; currency: string; application_id: string; user_id: string; } export interface CheckoutStatusResponse extends CheckoutPaymentResponse { id: string; merchant: { application: { name: string; psp: [ { shortcode: string; provider_type: string; currency: string; country: { country_code: string; }; } ]; }; }; } //# sourceMappingURL=checkout.d.ts.map