Open mehdizj2000 opened 2 years ago
@mehdizj2000 :
Looking at the example code you have pasted, please ensure that you use your "merchantId" from Sandbox environment in this code line below props.setProperty("merchantID", "my_web_au"); and provide the "keyId" generated using Enterprise Business Center login for your merchant in the code line below:
props.setProperty("**merchantKeyId**", "**my_merchant_id**");
I am unable to look up your merchantID "my_web_au" in the Business Center.
I followed the documentation and set up my API credentials as below:
it gives me 401 unauthorized error: Response{protocol=http/1.1, code=401, message=Unauthorized, url=https://apitest.cybersource.com/pts/v2/payments}
The above gives which is me 201 proper response.
I am sure my credentials are correctly created. Is there anything else I should add or modify to get past authorization?