Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
For communicating with the Payg API, use this basic Ruby gem. This is primarily intended for those who want to connect with the Payg API programatically.
Add this line to your application's Gemfile:
gem 'payg'
And then execute:
$ bundle
Or install it yourself as:
$ gem install payg
Ruby 2.6.8 or later
Remember to require 'payg'
before anything else.
Next, you need to initialize your AuthenticationKey, AuthenticationToken and MerchantKeyID using the following:
Payg.init('AuthenticationKey', 'AuthenticationToken', 'MerchantKeyId')
You can find your API keys at https://payg.in/merchant/login.
If you are using rails, the right place to do this might be config/initializers/payg.rb
.
payload = { Merchantkeyid: "8792", UniqueRequestId: "035bbf02a1f", RequestDateTime: "06232021", RedirectUrl: "https://payg.in", OrderAmount: "100", OrderAmountData: { AmountTypeDesc: "3", Amount: "2"}, CustomerData: { MobileNo: "8619083450", Email: "demo@gmail.com"} }
Payg::Order.create(payload.to_json)
payload = { OrderKeyId: "76719231011M8792Uf3f5b5ee3fe", MerchantKeyId: '8792', PaymentType: '' }
Payg::Order.detail(payload.to_json)
FAQs
Unknown package
We found that payg 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.