
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@thecodetalker1/react-native-paytm
Advanced tools
This library has been forked from https://github.com/elanic-tech/react-native-paytm Updated it to work with the latest version of react-native and latest PayTM SDK. Improved the documentaion as well.
Alert: Built and tested only for iOS.
react-native link react-native-paytm
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-paytm
and add RNPayTm.xcodeproj
libRNPayTm.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<import paytm from 'react-native-paytm';
import { ..., DeviceEventEmitter, ... } from 'react-native';
....
// Daat received from PayTM
const paytmConfig = {
MID: '...',
WEBSITE: '...',
CHANNEL_ID: '...',
INDUSTRY_TYPE_ID: '...',
CALLBACK_URL: 'https://securegw.paytm.in/theia/paytmCallback?ORDER_ID='
}
componentWillMount(){
...
DeviceEventEmitter.addListener('PayTMResponse', this.onPayTmResponse);
...
}
onPayTmResponse(response) {
// Process Response
console.log(response);
}
runTransaction(amount, customerId, orderId, mobile, email, checkSum) {
const callbackUrl = `${paytmConfig.CALLBACK_URL}${orderId}`;
const details = {
mode: 'Staging', // 'Staging' or 'Production'
mid: paytmConfig.MID,
industryType: paytmConfig.INDUSTRY_TYPE_ID,
website: paytmConfig.WEBSITE,
channel: paytmConfig.CHANNEL_ID,
amount: `${amount}`, // String
orderId: orderId, // String
email: email, // String
phone: mobile, // String
custId: customerId, // String
checksumhash: checkSum, //From your server using PayTM Checksum Utility
callback: callbackUrl
};
paytm.startPayment(details);
}
FAQs
A react native wrapper for PayTM
The npm package @thecodetalker1/react-native-paytm receives a total of 1 weekly downloads. As such, @thecodetalker1/react-native-paytm popularity was classified as not popular.
We found that @thecodetalker1/react-native-paytm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.