diff --git a/test/httpClient.test.js b/test/httpClient.test.js index 9f9f84f..0d5ab6c 100644 --- a/test/httpClient.test.js +++ b/test/httpClient.test.js @@ -47,7 +47,7 @@ describe('httpClient.js',()=> { let httpClient = new HttpClient(); return httpClient.request( 'get', - cons.serverKey,cons.CORE_SANDBOX_BASE_URL+'/token', + cons.serverKey,cons.CORE_SANDBOX_BASE_URL+'/v2/token', { 'card_number': '5264 2210 3887 4659', 'card_exp_month': '12', diff --git a/test/sharedConstants.js b/test/sharedConstants.js index 63f5a68..6fa4008 100644 --- a/test/sharedConstants.js +++ b/test/sharedConstants.js @@ -1,8 +1,8 @@ const cons = { serverKey : 'SB-Mid-server-GwUP_WGbJPXsDzsNEBRs8IYA', clientKey : 'SB-Mid-client-61XuGAwQ8Bj8LxSS', - CORE_SANDBOX_BASE_URL : 'https://api.sandbox.midtrans.com/v2', - CORE_PRODUCTION_BASE_URL : 'https://api.midtrans.com/v2', + CORE_SANDBOX_BASE_URL : 'https://api.sandbox.midtrans.com', + CORE_PRODUCTION_BASE_URL : 'https://api.midtrans.com', SNAP_SANDBOX_BASE_URL : 'https://app.sandbox.midtrans.com/snap/v1', SNAP_PRODUCTION_BASE_URL : 'https://app.midtrans.com/snap/v1', // iris related