Skip to content

Commit

Permalink
Merge branch 'master' into fix-ostruct-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
justincase authored Sep 30, 2024
2 parents 07256c3 + f5696ea commit 9c7d1e5
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 21 deletions.
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<p align="center">
<img src="https://info.mollie.com/hubfs/github/ruby/logo.png" width="128" height="128"/>
<img src="https://github.com/mollie/mollie-api-ruby/assets/39294/5d35df48-e5c0-4de6-8541-159d9d8aa6f6.png" width="128" height="128"/>
</p>
<h1 align="center">Mollie API client for Ruby</h1>

<img src="https://info.mollie.com/hubfs/github/ruby/editor.png" />
<img src="https://github.com/mollie/mollie-api-ruby/assets/39294/4838e149-4707-41c7-9aeb-bb86e68adc2c.png" />

> LOOKING FOR VERSION v2.2.X README? [CLICK HERE](https://github.com/mollie/mollie-api-ruby/tree/v2.2.1)
Expand All @@ -24,11 +24,11 @@ To use the Mollie API client, the following things are required:

## Installation

By far the easiest way to install the Mollie API client is to install it with [gem](http://rubygems.org/). Note: v4.8.0 and higher are not published on rubygems.org, see [GH-140](https://github.com/mollie/mollie-api-ruby/issues/140) for details.
By far the easiest way to install the Mollie API client is to install it with [gem](http://rubygems.org/).

```
# Gemfile
gem "mollie-api-ruby", github: "mollie/mollie-api-ruby", tag: "v4.11.0"
gem "mollie-api-ruby"
$ gem install mollie-api-ruby
```
Expand Down
2 changes: 1 addition & 1 deletion examples/connect/authorize.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
secret: secret,
state: 'some_state',
redirect_uri: redirect_url,
authorization_endpoint: 'https://www.mollie.com/oauth2/authorize',
authorization_endpoint: 'https://my.mollie.com/oauth2/authorize',
token_endpoint: 'https://api.mollie.com/oauth2/tokens'
)

Expand Down
2 changes: 1 addition & 1 deletion examples/connect/tokens.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
secret: secret,
state: 'some_state',
redirect_uri: redirect_url,
authorization_endpoint: 'https://www.mollie.com/oauth2/authorize',
authorization_endpoint: 'https://my.mollie.com/oauth2/authorize',
token_endpoint: 'https://api.mollie.com/oauth2/tokens'
)

Expand Down
12 changes: 12 additions & 0 deletions lib/mollie/method.rb
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
module Mollie
class Method < Base
ALMA = 'alma'.freeze
APPLEPAY = 'applepay'.freeze
BANCONTACT = 'bancontact'.freeze
BANCOMAT_PAY = 'bancomatpay'.freeze
BANKTRANSFER = 'banktransfer'.freeze
BELFIUS = 'belfius'.freeze
BILLIE = 'billie'.freeze
BLIK = 'bilk'.freeze
CREDITCARD = 'creditcard'.freeze
DIRECTDEBIT = 'directdebit'.freeze
EPS = 'eps'.freeze
GIFTCARD = 'giftcard'.freeze
GIROPAY = 'giropay'.freeze
IDEAL = 'ideal'.freeze
IN3 = 'in3'.freeze
INGHOMEPAY = 'inghomepay'.freeze
KBC = 'kbc'.freeze
MYBANK = 'mybank'.freeze
PAYPAL = 'paypal'.freeze
PAYSAFECARD = 'paysafecard'.freeze
PRZELEWY24 = 'przelewy24'.freeze
RIVERTY = 'riverty'.freeze
SOFORT = 'sofort'.freeze
SATISPAY = 'satispay'.freeze
TRUSTLY = 'trustly'.freeze
TWINT = 'twint'.freeze
VOUCHER = 'voucher'.freeze
KLARNA = 'klarna'.freeze
KLARNASLICEIT = 'klarnasliceit'.freeze
KLARNAPAYLATER = 'klarnapaylater'.freeze

Expand Down
4 changes: 4 additions & 0 deletions mollie-api-ruby.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ Gem::Specification.new do |s|
s.email = ['info@mollie.com']
s.homepage = 'https://github.com/mollie/mollie-api-ruby'
s.license = 'BSD'
s.metadata = {
'changelog_uri' => 'https://github.com/mollie/mollie-api-ruby/blob/master/CHANGELOG.md'
}

s.required_ruby_version = '>= 2.5'

s.files = `git ls-files`.split("\n")
Expand Down

0 comments on commit 9c7d1e5

Please sign in to comment.