Skip to content

Commit

Permalink
FlexCharge: Update homePage url (#5351)
Browse files Browse the repository at this point in the history
* FlecCharge: Update homePage url

Description
-------------------------
This is a small commit to update the homepage url
for FlexCharge Gateway

Unit test
-------------------------
28 tests, 125 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed

Remote test
-------------------------
Finished in 75.763065 seconds.
20 tests, 56 assertions, 0 failures, 0 errors, 0 pendings, 1 omissions, 0 notifications 100% passed

Rubocop
-------------------------
798 files inspected, no offenses detected

* changelog

---------

Co-authored-by: Nick <[email protected]>
  • Loading branch information
javierpedrozaing and naashton authored Dec 3, 2024
1 parent 90bc1c7 commit 6e21157
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
* RedsysREST: Add Network Tokens [gasb150] #5333
* DLocal: Update the success_from for Void [almalee24] #5337
* Braintree: Add support for stored credentials with Apple Pay [bdcano] #5336
* FlexCharge: Update homePage url [javierpedrozaing] #5351

== Version 1.137.0 (August 2, 2024)
* Unlock dependency on `rexml` to allow fixing a CVE (#5181).
Expand Down
2 changes: 1 addition & 1 deletion lib/active_merchant/billing/gateways/flex_charge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class FlexChargeGateway < Gateway
self.default_currency = 'USD'
self.supported_cardtypes = %i[visa master american_express discover]
self.money_format = :cents
self.homepage_url = 'https://www.flex-charge.com/'
self.homepage_url = 'https://www.flexfactor.io/'
self.display_name = 'FlexCharge'

ENDPOINTS_MAPPING = {
Expand Down
5 changes: 5 additions & 0 deletions test/unit/gateways/flex_charge_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ def setup
}.merge(@options)
end

def test_valid_homepage_url
assert @gateway.homepage_url.present?
assert_equal 'https://www.flexfactor.io/', @gateway.homepage_url
end

def test_supported_countries
assert_equal %w(US), FlexChargeGateway.supported_countries
end
Expand Down

0 comments on commit 6e21157

Please sign in to comment.