
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.
multisafepay-api-ruby
Advanced tools
By far the easiest way to install the Multisafepay API client is to install it with gem.
# Gemfile
gem "multisafepay-api-ruby"
$ gem install multisafepay-api-ruby
You may also git checkout or download all the files, and include the Multisafepay API client manually.
Require the Multisafepay API Client. Not required when used with a Gemfile
require 'multisafepay-api-ruby'
Create an initializer and add the following line:
MultiSafePay::Client.configure do |config|
config.api_key = '<your-api-key>'
config.environment = :test # or :live
# Timeouts (default - 60)
# config.open_timeout = 60
# config.read_timeout = 60
end
You can also include the API Key in each request you make, for instance if you are using the Connect API:
MultiSafePay::Order.get('order-id', api_key: '<your-api-key>', environment: :test)
If you need to do multiple calls with the same API Key, use the following helper:
MultiSafePay::Client.with_api_key('<your-api-key>') do
MultiSafePay::Order.create(
order_id: '12345',
amount: 1000,
currency: 'EUR',
description: 'My first API payment',
redirect_url: 'https://webshop.example.org/order/12345/',
webhook_url: 'https://webshop.example.org/multisafepay-webhook/'
)
end
payments = MultiSafePay::Transaction.all
payments.next
payments.previous
If you wish to learn more about the MultiSafePay API, please visit the API Documentation.
Feel free to contribute and make things better by opening an Issue or Pull Request.
View license information for the software contained in this image.
This library is heavily inspired by the Mollie API client for Ruby.
FAQs
Unknown package
We found that multisafepay-api-ruby demonstrated a healthy version release cadence and project activity because the last version was released less than 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.