fintecture 0.1.9 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,152 +1,238 @@
1
- # Fintecture
2
-
3
- Fintecture is connected with most European banks and enables a user to initiate a payment directly from their bank account. This results to a bank transfer sent from the user's bank account directly to your bank account, skipping all intermediaries. Within the SEPA region, transfers take between 10 seconds to 1 business day to arrive on your bank account. No hidden fees. Check out [our website](https://fintecture.com/).
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- ```ruby
10
- gem 'fintecture'
11
- ```
12
-
13
-
14
- And then execute:
15
-
16
- $ bundle
17
-
18
- Or install it yourself as:
19
-
20
- $ gem install fintecture
21
-
22
- ## Usage
23
-
24
- Get started by subscribing to a free developer account. Join today to get access to our sandbox by registering on the [developer console](https://console.fintecture.com) by creating your first sets of API Keys. When creating an account, specify you are an ECOMMERCE. When you’re ready to deploy to production, just go through the Activation Form in your console. Once the Fintecture Team activates your account, you’ll be ready to start receiving real bank transfers directly on the bank account specified during activation.
25
-
26
- Initialize your client credentials
27
-
28
- ```ruby
29
- Fintecture.app_id = 'your_app_id'
30
- Fintecture.app_secret = 'your_app_secret'
31
- Fintecture.private_key = %q(your_private_key)
32
- ```
33
-
34
-
35
- #### Environments
36
-
37
- By default `sandbox` is the initial environment, but you can change to sandbox by doing
38
-
39
- ```ruby
40
- Fintecture.environment = 'sandbox'
41
- ```
42
-
43
- You can also see the available environments
44
-
45
- Fintecture::ENVIRONMENTS
46
- => ["sandbox", "production"]
47
-
48
- ### Authentication
49
-
50
-
51
- #### Access token
52
-
53
- ```ruby
54
- Fintecture::Pis.get_access_token
55
- ```
56
-
57
- ### Connect
58
-
59
- #### Get connect URL
60
- ```ruby
61
- payment_attrs = {
62
- amount: 123,
63
- currency: 'EUR',
64
- communication: 'Thanks Mom!',
65
- customer_full_name: 'John Doe',
66
- customer_email: 'john.doe@email.com',
67
- customer_ip: '127.0.0.1',
68
- customer_phone: '666777888',
69
- customer_address: {
70
- street: 'Main St.',
71
- number: '123',
72
- complement: '2nd floor',
73
- zip: '75000',
74
- city: 'Paris',
75
- country: 'fr',
76
- },
77
- redirect_uri: 'http://example.com/callback',
78
- origin_uri: 'http://example.com/checkout?session=123',
79
- state: 'somestate',
80
- psu_type: 'retail',
81
- country: 'fr',
82
-
83
- }
84
- tokens = Fintecture::Pis.get_access_token
85
- connect_response = Fintecture::Connect.get_pis_connect tokens['access_token'], payment_attrs
86
- url = connect_response[:url]
87
-
88
- ```
89
- Explanation of each field:
90
-
91
- * amount: **[mandatory]** The amount of the payment initiation request. Min 1.00 and Max is variable based on bank's policy.
92
- * currency: **[mandatory]** The currency of the payment initiation request. Currently, only EUR and GBP is supported.
93
- * communication: **[optional]** A message sent to the beneficiary of the payment and visible on his bank statement. In the context of ecommerce payment collection, the order reference is inputted here (with an optional prefer ex: REF#23444)
94
- * customer_full_name: **[mandatory]** The full name of the payer
95
- * customer_email: **[mandatory]** The email of the payer
96
- * customer_ip: **[mandatory]** The ip address of the payer
97
- * customer_phone: **[optional]** The phone of the payer
98
- * customer_address: **[optional]** The address of the payer. It has the following structure:
99
- * street: **[optional]** The address street name
100
- * number: **[optional]** The address number
101
- * complement: **[optional]** Complement information to the address
102
- * zip: **[optional]** The address zip code
103
- * city: **[optional]** The address city
104
- * country: **[optional]** The country code (2 letters)
105
- * redirect_uri: **[mandatory]** The callback URL to which the customer is redirected after authentication with his bank
106
- * origin_uri: **[optional]** A URL to which the customer will be redirected if he wants to exit Fintecture Connect
107
- * execution_date: **[optional]** A future date to execute the payment. If the execution_date field is omitted, the payment is to be sent immediately.
108
- * state: **[optional]** A state parameter which is sent back on callback
109
- * psu_type: **[optional]** Possible values are **retail**, **corporate** and **all** (retail by default)
110
- * country: **[optional]** Loads a specific collection of providers filter by country
111
- * provider: **[optional]** Limits the webview to the provided provider
112
- * beneficiary: **[optional]** The beneficiary of the payment. It has the following structure:
113
- * name: **[optional]** The beneficiary name
114
- * street: **[optional]** The beneficiary address street name
115
- * number: **[optional]** The beneficiary address number
116
- * complement: **[optional]** Complement information to the beneficiary address
117
- * zip: **[optional]** The beneficiary address zip code
118
- * city: **[optional]** The beneficiary address city
119
- * country: **[optional]** The beneficiary country code (2 letters)
120
- * iban: **[optional]** The beneficiary iban
121
- * swift_bic: **[optional]** The beneficiary swift or bic code
122
- * bank: **[optional]** The beneficiary bank name
123
-
124
- #### Verify payment
125
-
126
- ```ruby
127
-
128
- payment_response = Fintecture::Pis.get_payments tokens['access_token'], params[:session_id]
129
- payment_response_body = JSON.parse payment_response.body
130
-
131
- verified = (payment_response_body['meta']['status'] === 'payment_created')
132
- ```
133
-
134
- If the payment was success, the status of the response (_payment_response_body['meta']['status']_) should be **payment_created**
135
-
136
- ## Development
137
-
138
- 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.
139
-
140
- 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).
141
-
142
- ## Contributing
143
-
144
- Bug reports and pull requests are welcome on GitHub at https://github.com/Fintecture/fintecture-sdk-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
145
-
146
- ## License
147
-
148
- The gem is available as open source under the terms of the [GPL-3.0 License](http://www.gnu.org/licenses/gpl-3.0.txt).
149
-
150
- ## Code of Conduct
151
-
152
- Everyone interacting in the Fintecture project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Fintecture/fintecture-sdk-ruby/blob/master/CODE_OF_CONDUCT.md).
1
+ # Fintecture
2
+
3
+ Fintecture is connected with most European banks and enables a user to initiate a payment directly from their bank account. This results to a bank transfer sent from the user's bank account directly to your bank account, skipping all intermediaries. Within the SEPA region, transfers take between 10 seconds to 1 business day to arrive on your bank account. No hidden fees. Check out [our website](https://fintecture.com/).
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'fintecture'
11
+ ```
12
+
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install fintecture
21
+
22
+ ## Usage
23
+
24
+ Get started by subscribing to a free developer account. Join today to get access to our sandbox by registering on the [developer console](https://console.fintecture.com) by creating your first sets of API Keys. When creating an account, specify you are an ECOMMERCE. When you’re ready to deploy to production, just go through the Activation Form in your console. Once the Fintecture Team activates your account, you’ll be ready to start receiving real bank transfers directly on the bank account specified during activation.
25
+
26
+ Initialize your client credentials
27
+
28
+ ```ruby
29
+ Fintecture.app_id = 'your_app_id'
30
+ Fintecture.app_secret = 'your_app_secret'
31
+ Fintecture.private_key = %q(your_private_key)
32
+ ```
33
+
34
+
35
+ #### Environments
36
+
37
+ By default `sandbox` is the initial environment, but you can change to sandbox by doing
38
+
39
+ ```ruby
40
+ Fintecture.environment = 'sandbox'
41
+ ```
42
+
43
+ You can also see the available environments
44
+
45
+ Fintecture::ENVIRONMENTS
46
+ => ["sandbox", "production"]
47
+
48
+ ### Authentication
49
+
50
+
51
+ #### Access token
52
+
53
+ ```ruby
54
+ Fintecture::Pis.get_access_token
55
+ ```
56
+
57
+ ### Connect
58
+
59
+ #### Get connect URL
60
+ ```ruby
61
+ payment_attrs = {
62
+ amount: 123,
63
+ currency: 'EUR',
64
+ communication: 'Thanks Mom!',
65
+ execution_date: '2021-09-23',
66
+ beneficiary: {
67
+ name: "Bob Smith",
68
+ iban: "FR1420041010050500013M02606",
69
+ swift_bic: "BANKFRXXXXX",
70
+ street: "road of somewhere",
71
+ number: "2",
72
+ complement:"",
73
+ city: "Paris",
74
+ zip: "93160",
75
+ country: "FR",
76
+ form: "",
77
+ incorporation: ""
78
+ },
79
+ debited_account_id: 'FR1420041010050500013M02606',
80
+ debited_account_type: 'iban',
81
+ end_to_end_id: '5f78e902907e4209aa8df63659b05d24',
82
+ scheme: 'AUTO',
83
+ customer_full_name: 'John Doe',
84
+ customer_email: 'john.doe@email.com',
85
+ customer_phone: '666777888',
86
+ customer_phone_prefix: '',
87
+ customer_ip: '127.0.0.1',
88
+ customer_form: '',
89
+ customer_incorporation: '',
90
+ customer_address: {
91
+ street: 'Main St.',
92
+ number: '123',
93
+ complement: '2nd floor',
94
+ city: 'Paris',
95
+ zip: '75000',
96
+ country: 'fr'
97
+ },
98
+ redirect_uri: 'http://www.google.fr',
99
+ origin_uri: 'http://example.com/checkout?session=123',
100
+ state: 'somestate'
101
+ }
102
+ tokens = Fintecture::Pis.get_access_token
103
+
104
+ connect_response = Fintecture::Pis.get_connect tokens['access_token'], payment_attrs
105
+ connect_response_body = JSON.parse connect_response.body
106
+ url = connect_response_body['meta']['url']
107
+ ```
108
+ Explanation of each field:
109
+
110
+ * amount: **[mandatory]** The amount of the payment initiation request. Min 1.00 and Max is variable based on bank's policy.
111
+ * currency: **[mandatory]** The currency of the payment initiation request. Currently, only EUR and GBP is supported.
112
+ * communication: **[optional]** A message sent to the beneficiary of the payment and visible on his bank statement. In the context of ecommerce payment collection, the order reference is inputted here (with an optional prefer ex: REF#23444)
113
+ * execution_date: **[optional]** A future date to execute the payment. If the execution_date field is omitted, the payment is to be sent immediately.
114
+ * beneficiary: **[optional]** The beneficiary of the payment. It has the following structure:
115
+ * name: **[optional]** The beneficiary name
116
+ * iban: **[optional]** The beneficiary iban
117
+ * swift_bic: **[optional]** The beneficiary swift or bic code
118
+ * street: **[optional]** The beneficiary address street name
119
+ * number: **[optional]** The beneficiary address number
120
+ * complement: **[optional]** Complement information to the beneficiary address
121
+ * city: **[optional]** The beneficiary address city
122
+ * zip: **[optional]** The beneficiary address zip code
123
+ * country: **[optional]** The beneficiary country code (2 letters)
124
+ * form: **[optional]**
125
+ * incorporation: **[optional]**
126
+ * debited_account_id: **[optional]** Predefine the account which which the payment will be done
127
+ * debited_account_type: **[mandatory if debited_account_id]** "internal" or "iban", "bban".
128
+ * end_to_end_id: **[optional]** A unique ID given by the creator of the payment and send to the bank. By default de session_id is used.
129
+ * scheme: **[optional]** The payment scheme to use. Default: AUTO (automatic selection), SEPA, INSTANT_SEPA
130
+ * customer_full_name: **[mandatory]** The full name of the payer
131
+ * customer_email: **[mandatory]** The email of the payer
132
+ * customer_phone: **[optional]** The phone of the payer
133
+ * customer_phone_prefix: **[optional]**
134
+ * customer_ip: **[mandatory]** The ip address of the payer
135
+ * customer_address: **[optional]** The address of the payer. It has the following structure:
136
+ * street: **[optional]** The address street name
137
+ * number: **[optional]** The address number
138
+ * complement: **[optional]** Complement information to the address
139
+ * city: **[optional]** The address city*
140
+ * zip: **[optional]** The address zip code
141
+ * country: **[optional]** The country code (2 letters)
142
+ * redirect_uri: **[mandatory]** The callback URL to which the customer is redirected after authentication with his bank
143
+ * origin_uri: **[optional]** A URL to which the customer will be redirected if he wants to exit Fintecture Connect
144
+ * state: **[optional]** A state parameter which is sent back on callback
145
+
146
+ #### Get Request-to-pay
147
+
148
+ ```ruby
149
+ payment_attrs = {
150
+ x_language: 'fr',
151
+ amount: 123,
152
+ currency: 'EUR',
153
+ communication: 'Thanks Mom!',
154
+ customer_full_name: 'John Doe',
155
+ customer_email: 'john.doe@email.com',
156
+ customer_phone: '666777888',
157
+ customer_phone_prefix: '+33',
158
+ customer_address: {
159
+ street: 'Main St.',
160
+ number: '123',
161
+ city: 'Paris',
162
+ zip: '75000',
163
+ country: 'fr'
164
+ },
165
+ expirary: 86400,
166
+ cc: 'exemple@gmail.com',
167
+ bcc: 'exemple@gmail.com',
168
+ redirect_uri: 'http://www.google.fr'
169
+ }
170
+ tokens = Fintecture::Pis.get_access_token
171
+
172
+ request_to_pay_response = Fintecture::Pis.request_to_pay @tokens['access_token'], payment_attrs
173
+ request_to_pay_response_body = JSON.parse request_to_pay_response.body
174
+ meta = request_to_pay_response_body['meta']
175
+ ```
176
+ Explanation of each field:
177
+
178
+ * x_language: **[mandatory]**
179
+ * amount: **[mandatory]** The amount of the payment initiation request. Min 1.00 and Max is variable based on bank's policy.
180
+ * currency: **[mandatory]** The currency of the payment initiation request. Currently, only EUR and GBP is supported.
181
+ * communication: **[optional]** A message sent to the beneficiary of the payment and visible on his bank statement. In the context of ecommerce payment collection, the order reference is inputted here (with an optional prefer ex: REF#23444)
182
+ * customer_full_name: **[mandatory]** The full name of the payer
183
+ * customer_email: **[mandatory]** The email of the payer
184
+ * customer_phone: **[mandatory]** The phone of the payer
185
+ * customer_phone_prefix: **[mandatory]**
186
+ * customer_address: **[optional]** The address of the payer. It has the following structure:
187
+ * street: **[optional]** The address street name
188
+ * number: **[optional]** The address number
189
+ * city: **[optional]** The address city*
190
+ * zip: **[optional]** The address zip code
191
+ * country: **[optional]** The country code (2 letters)
192
+ * expirary: **[optional]** The number of seconds of the validity of the request to pay, by default 86400
193
+ * cc: **[optional]** The CC email to receive a copy (If multiple emails, the emails must be concatenated with a comma.)
194
+ * bcc: **[optional]** The BCC email to receive a copy (If multiple emails, the emails must be concatenated with a comma.)
195
+ * redirect_uri: **[optional]** The callback URL to which the customer is redirected after authentication with his bank
196
+
197
+
198
+
199
+
200
+ #### Get a specific payment
201
+
202
+ ```ruby
203
+ payment_response = Fintecture::Pis.get_payments @tokens['access_token'], @session_id
204
+ payment_response_body = JSON.parse payment_response.body
205
+
206
+ verified = (payment_response_body['meta']['status'] === 'payment_created')
207
+ ```
208
+
209
+ If the payment was success, the status of the response (_payment_response_body['meta']['status']_) should be **payment_created**
210
+
211
+ #### Get payments
212
+
213
+ ```ruby
214
+ payments_response = Fintecture::Pis.get_payments @tokens['access_token']
215
+ payments_response_body = JSON.parse payments_response.body
216
+ payments_array = payment_response_body["data"]
217
+ ```
218
+
219
+ If the payment was success, the status of the response (_payment_response_body['meta']['status']_) should be **payment_created**
220
+
221
+
222
+ ## Development
223
+
224
+ 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.
225
+
226
+ 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).
227
+
228
+ ## Contributing
229
+
230
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Fintecture/fintecture-sdk-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
231
+
232
+ ## License
233
+
234
+ The gem is available as open source under the terms of the [GPL-3.0 License](http://www.gnu.org/licenses/gpl-3.0.txt).
235
+
236
+ ## Code of Conduct
237
+
238
+ Everyone interacting in the Fintecture project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/Fintecture/fintecture-sdk-ruby/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console CHANGED
@@ -1,14 +1,14 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "fintecture"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "fintecture"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup CHANGED
@@ -1,8 +1,8 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/fintecture.gemspec CHANGED
@@ -1,43 +1,43 @@
1
-
2
- lib = File.expand_path("../lib", __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'fintecture/version'
5
-
6
- Gem::Specification.new do |spec|
7
- spec.name = "fintecture"
8
- spec.version = Fintecture::VERSION
9
- spec.authors = ['Fintecture']
10
- spec.email = ["alvaro.fernandez@nazaries.com"]
11
-
12
- spec.summary = 'Short summary'
13
- spec.description = 'Longer summary'
14
- spec.homepage = "http://fintecture.com"
15
- spec.license = "GPL-3.0"
16
-
17
- # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
- # to allow pushing to a single host or delete this section to allow pushing to any host.
19
- if spec.respond_to?(:metadata)
20
- # spec.metadata["allowed_push_host"] = 'http://mygemserver.com'
21
-
22
- spec.metadata["homepage_uri"] = spec.homepage
23
- spec.metadata["source_code_uri"] = "https://github.com/Fintecture/fintecture-sdk-ruby"
24
- # spec.metadata["changelog_uri"] = spec.homepage
25
- else
26
- raise "RubyGems 2.0 or newer is required to protect against " \
27
- "public gem pushes."
28
- end
29
-
30
- # Specify which files should be added to the gem when it is released.
31
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
32
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
33
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
- end
35
- spec.bindir = "exe"
36
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
- spec.require_paths = ["lib"]
38
-
39
- spec.add_development_dependency "bundler", "~> 2.0"
40
- spec.add_development_dependency "rake", "~> 10.0"
41
- spec.add_development_dependency "rspec", "~> 3.0"
42
- spec.add_dependency'faraday'
43
- end
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'fintecture/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "fintecture"
8
+ spec.version = Fintecture::VERSION
9
+ spec.authors = ['Fintecture']
10
+ spec.email = ["alvaro.fernandez@nazaries.com"]
11
+
12
+ spec.summary = 'Short summary'
13
+ spec.description = 'Longer summary'
14
+ spec.homepage = "http://fintecture.com"
15
+ spec.license = "GPL-3.0"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ # spec.metadata["allowed_push_host"] = 'http://mygemserver.com'
21
+
22
+ spec.metadata["homepage_uri"] = spec.homepage
23
+ spec.metadata["source_code_uri"] = "https://github.com/Fintecture/fintecture-sdk-ruby"
24
+ # spec.metadata["changelog_uri"] = spec.homepage
25
+ else
26
+ raise "RubyGems 2.0 or newer is required to protect against " \
27
+ "public gem pushes."
28
+ end
29
+
30
+ # Specify which files should be added to the gem when it is released.
31
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
32
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
33
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
+ end
35
+ spec.bindir = "exe"
36
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
37
+ spec.require_paths = ["lib"]
38
+
39
+ spec.add_development_dependency "bundler", "~> 2.0"
40
+ spec.add_development_dependency "rake", "~> 10.0"
41
+ spec.add_development_dependency "rspec", "~> 3.0"
42
+ spec.add_dependency 'faraday'
43
+ end
@@ -1,28 +1,29 @@
1
- module Fintecture
2
- module Api
3
- module BaseUrl
4
-
5
- FINTECTURE_OAUTH_URL = {
6
- local: 'http://localhost:3000/oauth',
7
- test: 'https://oauth-sandbox-test.fintecture.com/oauth',
8
- sandbox: 'https://oauth-sandbox.fintecture.com/oauth',
9
- production: 'https://oauth.fintecture.com/oauth'
10
- }
11
-
12
- FINTECTURE_API_URL = {
13
- local: 'http://localhost:3000',
14
- test: 'https://api-sandbox-test.fintecture.com',
15
- sandbox: 'https://api-sandbox.fintecture.com',
16
- production: 'https://api.fintecture.com'
17
- }
18
-
19
- FINTECTURE_CONNECT_URL = {
20
- local: 'http://localhost:4201',
21
- test: 'https://connect-test.fintecture.com',
22
- sandbox: 'https://connect-sandbox.fintecture.com',
23
- production: 'https://connect.fintecture.com'
24
- }
25
-
26
- end
27
- end
1
+ module Fintecture
2
+ module Api
3
+ module BaseUrl
4
+
5
+ FINTECTURE_OAUTH_URL = {
6
+ local: 'http://localhost:3030/oauth',
7
+ test: 'https://oauth-sandbox-test.fintecture.com/oauth',
8
+ sandbox: 'https://api-sandbox.fintecture.com/oauth',
9
+ production: 'https://api.fintecture.com/oauth'
10
+ }
11
+
12
+ FINTECTURE_API_URL = {
13
+ local: 'http://localhost:3030',
14
+ test: 'https://api-sandbox-test.fintecture.com',
15
+ sandbox: 'https://api-sandbox.fintecture.com',
16
+ production: 'https://api.fintecture.com'
17
+ }
18
+
19
+ FINTECTURE_CONNECT_URL = {
20
+ local: 'http://localhost:4201',
21
+ test: 'https://connect-test.fintecture.com',
22
+ sandbox: 'https://connect-sandbox.fintecture.com',
23
+ production: 'https://connect.fintecture.com'
24
+ }
25
+
26
+
27
+ end
28
+ end
28
29
  end
@@ -1,13 +1,13 @@
1
- module Fintecture
2
- module Api
3
- module Endpoints
4
- module Authentication
5
-
6
- OAUTH_TOKEN_AUTHORIZE = '/token/authorize'
7
- OAUTH_ACCESS_TOKEN = '/accesstoken'
8
- OAUTH_REFRESH_TOKEN = '/refreshtoken'
9
-
10
- end
11
- end
12
- end
1
+ module Fintecture
2
+ module Api
3
+ module Endpoints
4
+ module Authentication
5
+
6
+ OAUTH_TOKEN_AUTHORIZE = '/token/authorize'
7
+ OAUTH_ACCESS_TOKEN = '/accesstoken'
8
+ OAUTH_REFRESH_TOKEN = '/refreshtoken'
9
+
10
+ end
11
+ end
12
+ end
13
13
  end