From 8ebdc6e563caa02bb7cf77b95a680876b052bdc1 Mon Sep 17 00:00:00 2001 From: rajgoenka <71872219+rajgoenka@users.noreply.github.com> Date: Sat, 21 Aug 2021 00:39:06 +0545 Subject: [PATCH] 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 Co-authored-by: adarsh-chaudhary <71324632+adarsh-chaudhary@users.noreply.github.com> --- src/@ionic-native/plugins/all-in-one-sdk/index.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/@ionic-native/plugins/all-in-one-sdk/index.ts b/src/@ionic-native/plugins/all-in-one-sdk/index.ts index 9c8ce32a..6b554ad6 100644 --- a/src/@ionic-native/plugins/all-in-one-sdk/index.ts +++ b/src/@ionic-native/plugins/all-in-one-sdk/index.ts @@ -57,7 +57,7 @@ export class AllInOneSDK extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves when a transaction completes(both failed and successful). */ @Cordova() - startTransaction(options: PaymentIntentModel): Promise { + startTransaction(options: PaymentIntentModel | PaymentAssistIntentModel): Promise { return; } } @@ -82,3 +82,14 @@ export interface PaymentIntentModel { callbackUrl: string; // Callback URL 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) +}