https://github.com/peterberkenbosch/opayo
Ruby client for Opayo (previously SagePay)
https://github.com/peterberkenbosch/opayo
api-client hacktoberfest opayo payment-gateway payment-integration ruby sagepay
Last synced: 11 months ago
JSON representation
Ruby client for Opayo (previously SagePay)
- Host: GitHub
- URL: https://github.com/peterberkenbosch/opayo
- Owner: peterberkenbosch
- License: mit
- Created: 2020-08-29T10:04:47.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2020-10-26T19:25:33.000Z (over 5 years ago)
- Last Synced: 2025-06-22T04:05:54.317Z (about 1 year ago)
- Topics: api-client, hacktoberfest, opayo, payment-gateway, payment-integration, ruby, sagepay
- Language: Ruby
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Opayo
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/opayo`. To experiment with that code, run `bin/console` for an interactive prompt.
TODO: Delete this and the text above, and describe your gem
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'opayo'
```
And then execute:
$ bundle install
Or install it yourself as:
$ gem install opayo
## Usage
The library needs to be configured with your opayo integration_key, integration_password, vendor_name, environment (live/test)
```ruby
Opayo.configure do |config|
config.integration_key = "abc"
config.integration_password = "xyz"
config.vendor_name = "pbctest"
config.environment = :test
end
```
## 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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/peterberkenbosch/opayo. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/peterberkenbosch/opayo/blob/master/CODE_OF_CONDUCT.md).
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
## Code of Conduct
Everyone interacting in the Opayo project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/peterberkenbosch/opayo/blob/master/CODE_OF_CONDUCT.md).