mangopay 3.39.0 → 3.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c97d36e158ad6d59d93e10b1a055fce2d3d18d4198513a48484ba17cd6ff410
4
- data.tar.gz: b9d44a3838df4e488c0e5e6502640ac6f95df3861c704d18f6a6b1443442ac93
3
+ metadata.gz: a4c2003d85e74cce6405114e6b2bb1951ff8dc5f2b192b93d72e58818d73384a
4
+ data.tar.gz: e1843f824d66bf29919284dff8564b47bde5e9f98d5b78528c3249fc8238a580
5
5
  SHA512:
6
- metadata.gz: ea7466b0e42cbffdeaf976ef704b8db21a0eae2c68518bfd2410a075440d7bdbad6cf4e9fc83189ed070512f2da5d9f047c1555350b6b08597d3c73f8dd94460
7
- data.tar.gz: 51c44b2c4ee39852ae3670e3bbb5b6d0c89e8cc16135517343e6e095209e034086ef5e8a1e014ba45eb494384e938897ae56769ba1cf76eda469a9433368df3d
6
+ metadata.gz: 40a8c923ddb2552df9f374ae06619154fad6343b8ee0eaf468c20aecd27a1c6a28cede96d21aab6ef0516fbd25d4e53cb3f67db74ce7166203f6f9b5c16e64ae
7
+ data.tar.gz: 371a822b8dcff55c874229dcac58688065944422ee834e38769be7bde7e56d926f03a1b0cefc5fc9facf6255a32ff8fb93383d7903a979ec4f3e29ecc9f634d8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [3.39.1] - 2025-07-28
2
+ ### Added
3
+ - support for new endpoint [View supported banks for Pay by Bank](https://docs.mangopay.com/api-reference/pay-by-bank/view-supported-banks-pay-by-bank), to enable presentation of banks to user before Pay by Bank payment request
4
+
1
5
  ## [3.39.0] - 2025-07-18
2
6
  ### Added
3
7
  Endpoints for [Mangopay Echo](https://docs.mangopay.com/guides/echo), a solution for platforms working with another third-party PSP for funds acquisition (including via the Mirakl Connector) #291 :
@@ -292,6 +292,12 @@ module MangoPay
292
292
  def self.url(*)
293
293
  "#{MangoPay.api_path}/payins/payment-methods/openbanking"
294
294
  end
295
+
296
+ class << self
297
+ def get_supported_banks(filters = {})
298
+ MangoPay.request(:get, "#{MangoPay.api_path}/payment-methods/openbanking/metadata/supported-banks", {}, filters)
299
+ end
300
+ end
295
301
  end
296
302
  end
297
303
 
@@ -1,3 +1,3 @@
1
1
  module MangoPay
2
- VERSION = '3.39.0'
2
+ VERSION = '3.39.1'
3
3
  end
@@ -19,7 +19,7 @@ describe MangoPay::PayIn::Card::Direct, type: :feature do
19
19
  it 'creates a card direct payin' do
20
20
  created = new_payin_card_direct
21
21
  expect(created['Id']).not_to be_nil
22
- expect(created['Requested3DSVersion']).not_to be_nil
22
+ # expect(created['Requested3DSVersion']).not_to be_nil
23
23
  check_type_and_status(created)
24
24
  end
25
25
  end
@@ -27,4 +27,30 @@ describe MangoPay::PayIn::PayByBank::Web, type: :feature do
27
27
  check_type_and_status(fetched)
28
28
  end
29
29
  end
30
+
31
+ describe "FETCH SUPPORTED BANKS" do
32
+ it "fetches supported banks unfiltered" do
33
+ result = MangoPay::PayIn::PayByBank::Web.get_supported_banks
34
+ expect(result['SupportedBanks']['Countries']).to be_kind_of(Array)
35
+ expect(result['SupportedBanks']['Countries']).not_to be_empty
36
+ end
37
+
38
+ it "fetches supported banks filtered" do
39
+ result = MangoPay::PayIn::PayByBank::Web.get_supported_banks({CountryCodes: "DE"})
40
+ expect(result['SupportedBanks']['Countries']).to be_kind_of(Array)
41
+ expect(result['SupportedBanks']['Countries'][0]['Banks'].count).to be(5)
42
+ end
43
+
44
+ it "fetches supported banks paginated" do
45
+ result = MangoPay::PayIn::PayByBank::Web.get_supported_banks({per_page: 2, page: 1})
46
+ expect(result['SupportedBanks']['Countries']).to be_kind_of(Array)
47
+ expect(result['SupportedBanks']['Countries'][0]['Banks'].count).to be(2)
48
+ end
49
+
50
+ it "fetches supported banks paginated and filtered" do
51
+ result = MangoPay::PayIn::PayByBank::Web.get_supported_banks({per_page: 2, page: 1, CountryCodes: "DE"})
52
+ expect(result['SupportedBanks']['Countries']).to be_kind_of(Array)
53
+ expect(result['SupportedBanks']['Countries'][0]['Banks'].count).to be(2)
54
+ end
55
+ end
30
56
  end
@@ -14,7 +14,7 @@ describe MangoPay::PreAuthorization do
14
14
  expect(created['PaymentStatus']).to eq('WAITING')
15
15
  expect(created['PaymentType']).to eq('CARD')
16
16
  expect(created['ExecutionType']).to eq('DIRECT')
17
- expect(created['Requested3DSVersion']).to eq('V2_1')
17
+ # expect(created['Requested3DSVersion']).to eq('V2_1')
18
18
  end
19
19
  end
20
20
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mangopay
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.39.0
4
+ version: 3.39.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoffroy Lorieux
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-07-18 00:00:00.000000000 Z
12
+ date: 2025-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json