mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 01:57:45 +08:00 
			
		
		
		
	feat: use admin_api_key auth along with merchant_id for connector list, retrieve and update apis (#5613)
This commit is contained in:
		| @ -484,7 +484,8 @@ Cypress.Commands.add("connectorRetrieveCall", (globalState) => { | ||||
|     headers: { | ||||
|       Accept: "application/json", | ||||
|       "Content-Type": "application/json", | ||||
|       "api-key": globalState.get("apiKey"), | ||||
|       "api-key": globalState.get("adminApiKey"), | ||||
|       "x-merchant-id": merchant_id, | ||||
|     }, | ||||
|     failOnStatusCode: false, | ||||
|   }).then((response) => { | ||||
| @ -530,7 +531,8 @@ Cypress.Commands.add( | ||||
|       headers: { | ||||
|         Accept: "application/json", | ||||
|         "Content-Type": "application/json", | ||||
|         "api-key": globalState.get("apiKey"), | ||||
|         "api-key": globalState.get("adminApiKey"), | ||||
|         "x-merchant-id": merchant_id, | ||||
|       }, | ||||
|       body: updateConnectorBody, | ||||
|       failOnStatusCode: false, | ||||
| @ -554,7 +556,8 @@ Cypress.Commands.add("connectorListByMid", (globalState) => { | ||||
|     url: `${globalState.get("baseUrl")}/account/${merchant_id}/connectors`, | ||||
|     headers: { | ||||
|       "Content-Type": "application/json", | ||||
|       "api-key": globalState.get("apiKey"), | ||||
|       "api-key": globalState.get("adminApiKey"), | ||||
|       "X-Merchant-Id": merchant_id, | ||||
|     }, | ||||
|     failOnStatusCode: false, | ||||
|   }).then((response) => { | ||||
| @ -2062,7 +2065,8 @@ Cypress.Commands.add("ListMCAbyMID", (globalState) => { | ||||
|     url: `${globalState.get("baseUrl")}/account/${merchantId}/connectors`, | ||||
|     headers: { | ||||
|       "Content-Type": "application/json", | ||||
|       "api-key": globalState.get("apiKey"), | ||||
|       "api-key": globalState.get("adminApiKey"), | ||||
|       "X-Merchant-Id": merchantId, | ||||
|     }, | ||||
|     failOnStatusCode: false, | ||||
|   }).then((response) => { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Hrithikesh
					Hrithikesh