Skip to content

Commit 8ebdc6e

Browse files
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 <[email protected]> Co-authored-by: adarsh-chaudhary <[email protected]>
1 parent 9a1b964 commit 8ebdc6e

File tree

1 file changed

+12
-1
lines changed
  • src/@ionic-native/plugins/all-in-one-sdk

1 file changed

+12
-1
lines changed

src/@ionic-native/plugins/all-in-one-sdk/index.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class AllInOneSDK extends IonicNativePlugin {
5757
* @return {Promise<PaytmResponse>} Returns a promise that resolves when a transaction completes(both failed and successful).
5858
*/
5959
@Cordova()
60-
startTransaction(options: PaymentIntentModel): Promise<PaytmResponse> {
60+
startTransaction(options: PaymentIntentModel | PaymentAssistIntentModel): Promise<PaytmResponse> {
6161
return;
6262
}
6363
}
@@ -82,3 +82,14 @@ export interface PaymentIntentModel {
8282
callbackUrl: string; // Callback URL
8383
restrictAppInvoke: boolean; // To enable or disable the paytm app invocation
8484
}
85+
86+
export interface PaymentAssistIntentModel {
87+
mid: string; // Merchant ID
88+
orderId: string; // Order ID
89+
txnToken: string; // Transaction Token
90+
amount: string; // Amount
91+
isStaging: boolean; // Environment
92+
callbackUrl: string; // Callback URL
93+
restrictAppInvoke: boolean; // To enable or disable the paytm app invocation
94+
enableAssist: boolean; // To enable or disable the Assist (Otp auto read)
95+
}

0 commit comments

Comments
 (0)