feat(cashfree-pg): support cordova-plugin-cashfree-pg 1.0.6 (#4737)

Co-authored-by: Kishan_maurya <kishan.maurya@cashfree.com>
This commit is contained in:
Kishan Kumar Maurya 2024-04-17 14:58:09 +05:30 committed by GitHub
parent e7963f6f03
commit 6e7d0069c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,6 +219,30 @@ export class CFWebCheckoutPayment implements CheckoutPayment {
}
}
export class CFUPIIntentCheckoutPayment implements CheckoutPayment {
private readonly session: CFSession;
private readonly theme: CFTheme = new CFThemeBuilder().build();
version: string;
constructor(
session: CFSession,
theme: CFTheme | null
) {
this.session = session;
if (theme !== null) {
this.theme = theme;
}
}
getSession() {
return this.session;
}
getTheme() {
return this.theme;
}
}
interface CFResult {
orderID: string;
}
@ -265,6 +289,15 @@ export class CFPaymentGateway extends AwesomeCordovaNativePlugin {
return;
}
/**
* Initiate UPI Checkout Payment.
* @param {CFUPIIntentCheckoutPayment} [upiCheckoutPayment] webCheckoutPaymentObject information
*/
@Cordova()
doUPIPayment(upiCheckoutPayment: CFUPIIntentCheckoutPayment) {
return;
}
/**
* Set Callback.
* @param {CFCallback} [cfCallback] callbacks for payment.