
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
API to integrate POLi payment gateway -- http://www.polipayments.com
Add this line to your application's Gemfile:
gem 'poli'
And then execute:
$ bundle
Or install it yourself as:
$ gem install poli
check poli version in terminal:
poli -v
generate poli configuration file, and change it to use your merchant code and authentication code:
poli generate
go into irb, and type:
> require 'poli'
> Poli::POLi.load_config # by default will use poli.yml in current folder or ./config folder
> financialInstitutions = Poli::POLi.get_financialInstitutions
> puts financialInstitutions
put configuration file to yourApp/config/ folder, or generate poli one under your app folder:
poli generate
put the following code into your initialize file, could be "config/initializers/all_init.rb":
Poli::POLi.load_config
defaults: &DEFAULTS
currency_code: "AUD"
timeout: 900
homepage_url: http://localhost:3000
notification_url: http://localhost:3000/poli/notification
checkout_url: http://localhost:3000/profile/poli/checkout
successful_url: http://localhost:3000/profile/poli/successful
unsuccessful_url: http://localhost:3000/profile/poli/unsuccessful
initiate_transaction: https://merchantapi.apac.paywithpoli.com/MerchantAPIService.svc/Xml/transaction/initiate
get_transaction: https://merchantapi.apac.paywithpoli.com/MerchantAPIService.svc/Xml/transaction/query
get_financial_institutions: https://merchantapi.apac.paywithpoli.com/MerchantAPIService.svc/Xml/banks
merchant_code: 1111111
authentication_code: 222222222
development:
<<: *DEFAULTS
merchant_code: 1111111
authentication_code: 222222222
test:
<<: *DEFAULTS
merchant_code: 1111111
authentication_code: 222222222
production:
<<: *DEFAULTS
merchant_code: 1111111
authentication_code: 222222222
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that poli 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.