Giter Site home page Giter Site logo

paytm-phonegap-plugin's Introduction

Installation

cordova plugin add https://github.com/samyam-a/PayTM-PhoneGap-Plugin.git --variable GENERATE_URL=<Checksum Generation URL> --variable VERIFY_URL=<Checksum Validation Url> --variable MERCHANT_ID=<MerchantID> --variable INDUSTRY_TYPE_ID=<IndustryType> --variable WEBSITE=<WAPWebsiteName>

Usage

window.plugins.paytm.startPayment(txn_id, customer_id, email, phone, amount, successCallback, failureCallback);

paytm-phonegap-plugin's People

Contributors

samyam-a avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

paytm-phonegap-plugin's Issues

Paytm Integration is failing in hybrid.

Hi ,

I am trying to implement paytm integration in my hybrid app. I have set the required parameters and yet its not calling the server.

While installing the plugin have given the required variables; checksum generate url , checksum verify url, webiste, mid , industry type id and on button click am calling window.plugins.paytm.startPayment(orderId, custid, 'email', mobile, amount, successCallback, failureCallback) function with proper params.

on calling, blank screen with loading bar appears and disappears automatically.

This is for ios platform. I have tried putting window.plugin code in device ready function and it is of no help.

How can I set the call for staging server and production server. ?
Can you please help in this.

Thanks in advance

Ionic paytm integration

hi ,
i need to integrate paytm with my ionic app.
please provide some detail documentation of integration .

Cordova paytm payment failed

I try to install plugin and start payment but payment not done. data post success but not get any responce return, show message "payment failed to due to any of these reasons"..Check attachment
screenshot_2017-01-19-11-53-45

Please help me

Post request
Request URL:https://secure.paytm.in/oltp-web/processTransaction
Request Method:POST
Status Code:200 OK

post data --
INDUSTRY_TYPE_ID=Retail&CHANNEL_ID=WAP&CHECKSUMHASH=N4eYUupD8e%2BnSprX%2FfNmTq7mfX%2F20aRqO262imH%2BiW0PwWmrUDaOZS6ZCIvUzUAeGhfWrBnz7%2Blspe3rr1voF1Dq%2BFMFIwyk7sUeiTrh3Rc%3D&MOBILE_NO=9343999856&REQUEST_TYPE=DEFAULT&TXN_AMOUNT=1&MID=robosf49909586699899&EMAIL=abcd66%40gmail.com&THEME=merchant&CUST_ID=CUST828509098&WEBSITE=robosoft&ORDER_ID=ORDER8285097676

Plugin not work

Hi ,

I am trying to implement paytm integration in my hybrid app. I have set the required parameters and yet its not calling the server.

While installing the plugin have given the required variables; checksum generate url , checksum verify url, webiste, mid , industry type id and on button click am calling window.plugins.paytm.startPayment(orderId, custid, 'email', mobile, amount, successCallback, failureCallback) function with proper params.

on calling, but not get any message or any page.

This is for android platform. I have tried putting window.plugin code in device ready function and it is of no help.

How can I set the call for staging server and production server. ?
Can you please help in this.

Callback Url after payment transaction

Hi,

I integrated the cordova paytm plugin.It is working fine in my ionic app. But after successful transaction, it is redirecting to callback url which i specified. It is not coming back to app itself. If i not specified the call back url, it is redirecting to error page.How i can get the response to the app itself ?

Please help me to sort out this problem.

Thanks

Success callback is not giving response. Response is hardcoded as 0

Hi,

I integrated the cordova paytm plugin in my ionic app. I completed the successful transactions.But api success callback is giving "0" response. It is not giving any valid response. Because it is hardcoded as "0" in the plugin response part. Please help me to sort out this problem ?

Issue in installing plugin

Hi I have installed the plugin but when i am calling plugin api with device ready function its giving me error i am not able to call the api can you please provide me sample code ......

Error in iOS paytm plugin

error

I facing this issue when i add your paytm cordova plugin in my project Please help me to solve this issue i already try this from last two three weeks...

I need help in callback section

Hi,
I have integrated the Paytm gateway into my WordPress but after successful payment, it is redirecting to the form page of Paytm. I want to redirect it to my desired page. as I got to know that I can do it by editing in the call back section. but when I am editing its showing invalid plugin in WordPress plugin editor. as I don't know how to place the code in the callback section, as to how to write the code in that section
so please can anyone guide me.
Thank you
ca;;

Documentation required

How can I use this plugin ? I know how to install plugin, what parameters should I pass and how?

Property 'plugins' does not exist on type 'Window'.

Hi there,
I am using your plugin to integrate paytm in my android app. I am using ionic frame work and I am getting this error " Property 'plugins' does not exist on type 'Window' " .

My platform details :

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.5
Ionic CLI Version: 2.1.4
Ionic App Lib Version: 2.1.2
Ionic App Scripts Version: 1.0.0
OS: Distributor ID: Ubuntu Description: Ubuntu 15.10
Node Version: v7.4.0

Oops paytm errror

Can anyone help i am getting Oops payment gateway cannot be opened.

Not able to redirect back to cordova app.

I have hosted a callbackUrl on my server and I am getting response from paytm on that URL. But the problem is I am not able to redirect back to my app after that. I have java as my backend language.
Please tell if you know the solution for this.

Getting Issue in Playstore

Your app is using an unsafe implementation of HostnameVerifier. Please see this Google Help Centre article for details, including the deadline for fixing the vulnerability.

Vulnerable classes:

com.paytm.pgsdk.PaytmPGService$CancelTransactionThread$1
com.paytm.pgsdk.PaytmPGService$StatusQueryThread$1

i got the above issue in playstore and i contacted the paytm and they are requesting to update jar file ,
how can i update the jar file

Thanks in advance

startPayment method gives 0 as error response

Hi there,

I have integrated your plugin in my ionic application. I have provided all the required parameters while installing the plugin.

But when I call startPayment it goes into the failure block and gives 0 as the error response.

I am using nodejs in the backend.

I have downloaded the backend code from the github repo provided by paytm.

I have some doubts:

  1. What is CHECKSUMHASH? Should I keep it as it is or I need to generate it?

  2. Paytm's testing and production url's are different. They have given me the testing credentials which I using with your plugin. Is it ok?

Any help will be appreciated.

New plugin needed with the updated classes that are vulnerable

The plugin has vulnerable classes and the app is getting rejected by google play. Are there are any plans to upgrade the plugin.
Vulnerable classes:

com.paytm.pgsdk.PaytmPGActivity$AuthenticatorTask$1
com.paytm.pgsdk.PaytmPGService$CancelTransactionThread$

Failed to fetch plugin https://github.com/samyam-a/PayTM-PhoneGap-Plugin.git via registry.

This error shows up each time I try to fire this command with the parameter:
cordova plugin add https://github.com/samyam-a/PayTM-PhoneGap-Plugin.git --variable GENERATE_URL= Checksum Generation URL --variable VERIFY_URL= Checksum Validation Url --variable MERCHANT_ID= MerchantID --variable INDUSTRY_TYPE_ID= IndustryType --variable WEBSITE= WAPWebsiteName

(node:1456) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Failed to fetch plugin https://github.com/samyam-a/PayTM-PhoneGap-Plugin.git via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Failed to get absolute path to installed module

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.