File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ def live_url_prefix=(value)
53
53
54
54
# base URL for API given service and @env
55
55
def service_url_base ( service )
56
+ # maps 'Disputes' to expected service name 'DisputesService' for URL matching
57
+ service = 'DisputesService' if service == 'Disputes'
56
58
if @env == :mock
57
59
@mock_service_url_base
58
60
else
Original file line number Diff line number Diff line change 278
278
expect ( client . service_url ( 'PosMobile' , 'sessions' , nil ) )
279
279
. to eq ( 'https://checkout-test.adyen.com/checkout/possdk/sessions' )
280
280
end
281
+
282
+ it 'correctly maps Disputes to DisputesService and generates valid URL' do
283
+ client = Adyen ::Client . new ( env : :test )
284
+ expect ( client . service_url_base ( 'Disputes' ) )
285
+ . to eq ( 'https://ca-test.adyen.com/ca/services/DisputesService' )
286
+ end
281
287
end
You can’t perform that action at this time.
0 commit comments