UNPKG

capacitor-plugin-cashfree-pg

Version:

A modern Capacitor plugin for Cashfree Payment Gateway with official API contract support

20 lines (19 loc) 609 B
import type { CheckoutPayment } from 'cashfree-pg-api-contract'; export interface CFPaymentResult { orderID?: string; error?: string; } export interface CFPaymentGatewayPlugin { /** * Start payment process with Web Checkout */ doWebCheckoutPayment(checkoutPayment: CheckoutPayment): Promise<CFPaymentResult>; /** * Start UPI Intent payment */ doUPIPayment(checkoutPayment: CheckoutPayment): Promise<CFPaymentResult>; /** * Start Subscription Checkout payment */ doSubscriptionPayment(checkoutPayment: CheckoutPayment): Promise<CFPaymentResult>; }