Skip to content

mourice/react-native-paytm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-paytm

Getting started

Alert: Built and tested only for iOS. $ npm install react-native-paytm --save

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. react-native link react-native-paytm

Usage

import paytm from 'react-native-paytm';

var details = {
    generationUrl: "http://somegenerationurl.in/checksumGenerator",
    validationUrl: "http://somegenerationurl.in/checksumValidator",
    mid: "YOUR_REGISTERED_MID", // Prod
    industryType: "YOUR_REGISTERED_INDUSTRY", //Prod
    website: "YOUR_REGISTERED_WEBSITE", //prod
    channel: "Your_REGISTERED_CHANNEL",
    amount: "5",
    orderId: "someuniquestring",
    requestType: "DEFAULT",
    email: "mailz4sreejith@gmail.com",
    phone: "9988755334",
    theme: "merchant",
    custId: "9988344556",
};
paytm.startPayment(details);

About

A react native wrapper for PayTM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 61.4%
  • Java 23.9%
  • C# 14.3%
  • JavaScript 0.4%