Skip to content

Commit

Permalink
feat(cashfree-pg): support cordova-plugin-cashfree-pg 1.0.6 (#4737)
Browse files Browse the repository at this point in the history
Co-authored-by: Kishan_maurya <kishan.maurya@cashfree.com>
  • Loading branch information
droiddevgeeks and kishan-cashfree committed Apr 17, 2024
1 parent e7963f6 commit 6e7d006
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/@awesome-cordova-plugins/plugins/cashfree-pg/index.ts
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 6e7d006

Please sign in to comment.