mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 00:12:53 +08:00
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:
parent
e7963f6f03
commit
6e7d0069c1
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user