File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
spec/lib/midtrans_api/api/channel Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 33module MidtransApi
44 API_PRODUCTION_URL = 'https://api.midtrans.com'
55 API_SANDBOX_URL = 'https://api.sandbox.midtrans.com'
6- API_PARTNER_URL = 'https://partner-api.midtrans.com'
6+ API_PARTNER_URL = 'https://partner-api.midtrans.com/api '
77
88 class << self
99 attr_accessor :configuration
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ module MidtransApi
44 module Api
55 module Channel
66 class List < MidtransApi ::Api ::Base
7- PATH = 'channels'
7+ PATH = 'iris/ channels'
88
99 # Get list of channels for specific merchant
1010 # [String] partner_id
Original file line number Diff line number Diff line change 2929
3030 describe '#get' do
3131 it 'returns expected response' do
32- stub_request ( :get , "#{ client . config . api_url } /#{ client . config . api_version } /channels" ) . to_return (
32+ stub_request ( :get , "#{ client . config . api_url } /#{ client . config . api_version } /iris/ channels" ) . to_return (
3333 status : 200 , body : success_response . to_json
3434 )
3535
You can’t perform that action at this time.
0 commit comments