Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70433

Issue while integrating paytm-cordova-plugin with ionic 4

$
0
0

@Subodh18 wrote:

i am trying to integrate this paytm plugin in ionic 4 application .
i have run the command

  1. cordova plugin add cordova-plugin-paytm --variable MERCHANT_ID= --variable INDUSTRY_TYPE_ID= --variable WEBSITE= --save
  2. npm i cordova-plugin-paytm

after installing i have added these lines in config.xml

<plugin name="cordova-plugin-paytm" spec="0.0.10">
    <variable name="MERCHANT_ID" value="ABC12345" />
    <variable name="INDUSTRY_TYPE_ID" value="Retail" />
    <variable name="WEBSITE" value="APPSTAGING" />

when i am referring paytm developer resources .
i got the information to add following line platform build.gradle file
maven {
url “https://artifactory.paytm.in/libs-release-local
}

and in platform/app build.gradle file following line .
implementation 'com.paytm.appinvokesdk:appinvokesdk:1.2’

after adding these lines in build.gradle
i am getting error while building apk .

  • What went wrong:
    A problem occurred evaluating project ‘:app’.

Could not find method implementation() for arguments
[com.paytm.appinvokesdk:appinvokesdk:1.2] on object of type
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

in plugins folder paytm-cordova-plugin android build.gradle file giving error like

A problem occurred evaluating root project ‘android’.
Could not find method compile() for arguments [com.paytm:pgplussdk:1.3.3, build_dvdpi277ijw11ql5ew5nm8u9v$_run_closure1$_closure2@7389f3fe] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.Java(0)
Could not run phased build action using Gradle distribution ‘https://services.gradle.org/distributions/gradle-6.3-bin.zip’.
Build file ‘D:\Exel\ionic\homeCart\payment\homeCart\wb\cl\homeCart\plugins\cordova-plugin-paytm\src\android\build.gradle’ line: 2

is there anything i am missing or anything wrong i have done.kindly suggest at the earliest.

Regards,
Subodh

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70433

Trending Articles