mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-04-27 05:10:12 +08:00
feat(all-in-one-sdk): add assist interface (#3717)
* feat(AllInOneSDK): add plugin for Paytm All-in-One SDK * feat(all-in-one-sdk): add check to restrict app invocation * feat(assist): Added assist interface Co-authored-by: Adarsh <adarsh.chaudhary@paytm.com> Co-authored-by: adarsh-chaudhary <71324632+adarsh-chaudhary@users.noreply.github.com>
This commit is contained in:
parent
9a1b96462d
commit
8ebdc6e563
@ -57,7 +57,7 @@ export class AllInOneSDK extends IonicNativePlugin {
|
|||||||
* @return {Promise<PaytmResponse>} Returns a promise that resolves when a transaction completes(both failed and successful).
|
* @return {Promise<PaytmResponse>} Returns a promise that resolves when a transaction completes(both failed and successful).
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
startTransaction(options: PaymentIntentModel): Promise<PaytmResponse> {
|
startTransaction(options: PaymentIntentModel | PaymentAssistIntentModel): Promise<PaytmResponse> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -82,3 +82,14 @@ export interface PaymentIntentModel {
|
|||||||
callbackUrl: string; // Callback URL
|
callbackUrl: string; // Callback URL
|
||||||
restrictAppInvoke: boolean; // To enable or disable the paytm app invocation
|
restrictAppInvoke: boolean; // To enable or disable the paytm app invocation
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface PaymentAssistIntentModel {
|
||||||
|
mid: string; // Merchant ID
|
||||||
|
orderId: string; // Order ID
|
||||||
|
txnToken: string; // Transaction Token
|
||||||
|
amount: string; // Amount
|
||||||
|
isStaging: boolean; // Environment
|
||||||
|
callbackUrl: string; // Callback URL
|
||||||
|
restrictAppInvoke: boolean; // To enable or disable the paytm app invocation
|
||||||
|
enableAssist: boolean; // To enable or disable the Assist (Otp auto read)
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user