Skip to main content
Question

X-Target-Environment

  • 24 July 2024
  • 3 replies
  • 52 views

Hello I want to know what value concerns X-Target-Environment for the request headers in the sandbox because I put sandbox but the answer returns me an error 400 thank you kindly refer me to those who know  

this is a description about X-Target-Environment 

The identifier of the Wallet Platform system where the transaction shall be processed. This parameter is used to route the request to the Wallet Platform system that will initiate the transaction.

3 replies

Hello I want to know what value concerns X-Target-Environment for the request headers in the sandbox because I put sandbox but the answer returns me an error 400 thank you kindly refer me to those who know  

this is a description about X-Target-Environment 

The identifier of the Wallet Platform system where the transaction shall be processed. This parameter is used to route the request to the Wallet Platform system that will initiate the transaction.

it’s good I solved my problem thank you anyway:)

Hi, renaud!
I’m having the same 400 bad request when testing bc-authorize
What’s the value for the X-Target-Environment? 
I’ve used sandbox as the value but same errors.
Thanks in advance!

Hi! I invite you to go to this library https://github.com/enzoforreal/mtn-momo-api and look at the header and body of the GetAuthToken function in client.go 

it uses the same principle as bc-authorize!

good luck 😚

and do not hesitate to contribute to the project if you wish 

Reply