Skip to content

Commit

Permalink
Merge pull request #25 from nordigen/update-base-client-url
Browse files Browse the repository at this point in the history
Update base_url
  • Loading branch information
safriks committed Feb 9, 2024
2 parents 998b9a2 + 35ce197 commit adf2af2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog


## [2.2.0] - 2024-02-09

- Change base URL to bankaccountdata.gocardless.com

## [2.1.3] - 2023-13-07

- Update URLs to GoCardless
Expand Down
2 changes: 1 addition & 1 deletion lib/nordigen-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
module Nordigen
class NordigenClient

BASE_URL = "https://ob.gocardless.com/api/v2/"
BASE_URL = "https://bankaccountdata.gocardless.com/api/v2/"

@@headers = {
"accept" => "application/json",
Expand Down
2 changes: 1 addition & 1 deletion lib/nordigen_ruby/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Nordigen
VERSION = "2.1.3"
VERSION = "2.2.0"
end
2 changes: 1 addition & 1 deletion main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module Nordigen

# Initialize bank authorization session
init = client.init_session(
redirect_url: "https://gocardless.com",
redirect_url: "https://bankaccountdata.gocardless.com",
institution_id: id,
reference_id: SecureRandom.uuid,
user_language: "en",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_requisitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def setup()

@institution_id = "REVOLUT_REVOGB21"
@req_params = {
redirect_url: "https://ob.gocardless.com",
redirect_url: "https://bankaccountdata.gocardless.com",
reference: SecureRandom.uuid,
institution_id: @institution_id
}
Expand Down

0 comments on commit adf2af2

Please sign in to comment.