Skip to content

Commit

Permalink
cryptomus custom url
Browse files Browse the repository at this point in the history
  • Loading branch information
senid231 committed Feb 2, 2025
1 parent e0b312e commit 91826d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ gem 'cronex', '~> 0.12.0'

gem 'click_house'

gem 'cryptomus', '~> 0.2.0'
gem 'cryptomus', '~> 0.2.2'

gem 'opentelemetry-exporter-otlp'
gem 'opentelemetry-instrumentation-all'
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ GEM
cronex (0.12.0)
tzinfo
unicode
cryptomus (0.2.1)
cryptomus (0.2.2)
faraday (~> 2.7)
csv (3.3.0)
cuprite (0.11)
Expand Down Expand Up @@ -904,7 +904,7 @@ DEPENDENCIES
click_house
config
cronex (~> 0.12.0)
cryptomus (~> 0.2.0)
cryptomus (~> 0.2.2)
cuprite
d3-rails (= 3.5.2)
daemons
Expand Down
1 change: 1 addition & 0 deletions config/initializers/_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def self.setting_files(config_root, _env)
optional(:cryptomus).schema do
optional(:api_key).maybe(:string)
optional(:merchant_id).maybe(:string)
optional(:base_url).maybe(:string)
optional(:url_callback).maybe(:string)
optional(:url_return).maybe(:string)
end
Expand Down
1 change: 1 addition & 0 deletions config/initializers/cryptomus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
Cryptomus.configure do |config|
config.merchant_id = YetiConfig.cryptomus&.merchant_id
config.api_key = YetiConfig.cryptomus&.api_key
config.base_url = YetiConfig.cryptomus&.base_url.presence || Cryptomus::CONST::URL
end

0 comments on commit 91826d4

Please sign in to comment.