Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

secuconnect

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

secuconnect

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Secuconnect

This gem provide a client for the secuconnect api. Currently it support only the payout contracts endpoint. Pr's for other endpoints are welcome.

Installation

Add this line to your application's Gemfile:

gem 'secuconnect'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install secuconnect

Usage

Configuration

First of all yout should provide secuconnect credentials. To do it just create an initializer file and add a configuration block inside it.

Secuconnect.configure do |config|
  config.secuconnect_client_id = "your_client_id"
  config.secuconnect_client_secret = "your_client_secret"
  # optional
  config.secuconnect_base_url = "secucconect base url"
  config.secuconnect_token_expiration_seconds = "token expiration time"
end

Contracts

The contract endpoint provide function to create and validate a contract sub-project

You could create a contract sub-project in this way

contract = Secuconnect::Payment::Contract.create(account_id: account_id, body: body)

# body could look like this
body = {
    contact: {
        salutation: "Mr",
        forename: "John",
        surname: "Doe",
        dob: "1980-02-03",
        email: "john.doe@example.com",
        mobile: "",
        address: {
        street: "Test Street",
        street_number: "6",
        postal_code: "01234",
        city: "Examplecity",
        country: "Germany"
        }
    },
    project: "project_name",
    payout_account: {
        iban: "DE89370400440532013000",
        bic: "",
        owner: "Test 1"
    }
}

for further information which arguments are provided. Please check it on https://developer.secuconnect.com/

if you want to validate the contract use

validation_result = Secuconnect::Payment::Contract.validate(account_id: account_id)

Step 1

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/secuconnect.

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 14 Feb 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc