
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.