Skip to content

Commit f0fafc5

Browse files
authored
Merge pull request #116 from maxmind/horgh/payment-processors
Add payment processor
2 parents e390a83 + 9c97dc3 commit f0fafc5

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v2.8.0
4+
5+
* Added the processor `:cryptomus` to `Minfraud::Components::Payment`.
6+
37
## v2.7.1 (2025-02-10)
48

59
* Re-release due to bug in release workflow.

lib/minfraud/components/base.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def represent(key, value)
4242

4343
# Keys that have to remain boolean
4444
BOOLS = %w[was_authorized is_gift has_gift_message].freeze
45+
46+
private_constant :BOOLS
4547
end
4648
end
4749
end

lib/minfraud/components/payment.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ class Payment < Base
5050
coregateway
5151
creditguard
5252
credorax
53+
cryptomus
5354
ct_payments
5455
cuentadigital
5556
curopayments

lib/minfraud/http_service/response.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def make_body(endpoint, locales, response, body)
7171
insights: Minfraud::Model::Insights,
7272
score: Minfraud::Model::Score
7373
}.freeze
74+
75+
private_constant :ENDPOINT_TO_CLASS
7476
end
7577
end
7678
end

0 commit comments

Comments
 (0)