Skip to content
A react native wrapper for PayTM with enhancements, samples and fixes
Branch: master
Clone or download
Pull request Compare This branch is 2 commits ahead, 10 commits behind elanic-tech:master.
tejashwikalptaru Merge pull request #1 from devshekhawat/patch-1
Update paytm dependency with latest sdk
Latest commit a37080b Apr 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
android
example
ios
windows
.DS_Store
README.md
index.js
package.json

README.md

react-native-paytm

This library has been forked from https://github.com/elanic-tech/react-native-paytm I have fixed some issues, updated the iOS bridge (event emitter), updated Paytm iOS sdk for bitcode and x86-x64, added an example with PHP code on how to generate payment request

Getting started

Alert: Built and tested only for iOS.

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-paytm and add RNPayTm.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNPayTm.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Manually link and add react native to your project

Usage

import paytm from 'react-native-paytm';

var details = {
    mid: data.MID,
    industryType: data.INDUSTRY_TYPE_ID, //Prod
    website: data.WEBSITE, //prod
    channel: data.CHANNEL_ID,
    amount: data.TXN_AMOUNT,
    orderId: data.ORDER_ID,
    email: data.EMAIL,
    phone: data.MOBILE_NO,
    custId: data.CUST_ID,
    checksumhash: data.CHECKSUM,
    callback: data.CALLBACK_URL,
};
paytm.startPayment(details);
You can’t perform that action at this time.