Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.