11 posts / 0 new
Last post
chengzhao8494
Testing integration failed : "Access Denied"

I'm working with Payeezy.Js and I'm stuck right now!
I need to test my application out before it goes live.
Here is where I'm:

1. My developer account to merchant account already linked;
2. Did not see "My Merchants" in my developer account(https://developer.payeezy.com/user/me/merchants), Just "MERCHANTS", click on it and then click "LIVE".
using the new Token and JS Security Key replace mine.
(a. API Key doesn't change.)
(b. When I click on "LIVE" button, Token and JS Security Key are changed, but once I went to another page and then back to this page, "SANDBOX" got
checked and "LIVE" button lose focus. I don't know this is normal or not)
3. I even followed the Rajagopal said in the email, Log into https://developer.payeezy.com, navigate to the “My APIs” page, select myAPI and then “Edit COOLERDEPOT”. Make sure that “Live” is checked.

I'm getting this Payeezy.callback every time:

Payeezy.callback( {status: 401, results: {type: "FDToken", status: "failed",…}})
results
:
{type: "FDToken", status: "failed",…}
Error
:
{messages: [{code: "401", description: "Access Denied", correlation_id: "228.1462942554266"}]}
messages
:
[{code: "401", description: "Access Denied", correlation_id: "228.1462942554266"}]
0
:
{code: "401", description: "Access Denied", correlation_id: "228.1462942554266"}
code
:
"401"
correlation_id
:
"228.1462942554266"
description
:
"Access Denied"
status
:
"failed"
type
:
"FDToken"
status
:
401

I'm using Payeezy.Js and Test Cards data which the website provided:
MasterCard
5526 3990 0064 8568

Did I do something wrong or I missed something?


rohitrajagopal3538
Re: Testing integration failed : "Access Denied"

Hi Cheng,

Usually, this happens when the API credentials or Merchant token or js_security_key are incorrect:

  • When testing in CERT environment
    • Ensure that you are accessing the sandbox URL - https://api-cert.payeezy.com/v1/
    • Ensure that the API is enabled for sandbox environment. Do this by going to My APIs and edit your API.
    • Ensure that you are using the merchant token listed in the "My Merchants" page under the "Sandbox" tab.
    • In tokenization requests, if applicable, ensure that you are using ta_token = 'NOIW'
  • In PROD environment,
    • Ensure that you are accessing the production URL - https://api.payeezy.com/v1/
    • Ensure that the API is enabled for Live environment. Do this by going to My APIs and edit your API.​
    • Ensure that you are using the merchant token listed in the "My Merchants" page under the Live tab.

chengzhao8494
Re: Testing integration failed : "Access Denied"

Hi rohitrajagopal3538,

Thanks for reply,

I followed every instructions you mentioned and this time, Payeezy.Js response another 401 error :Missing or Invalid API Key
But I'm for sure using a right API Key, things getting weird.....

BTW, I'm testing PROD environment on my local server, Does this is the reason to cause the failed response?


rohitrajagopal3538
Re: Testing integration failed : "Access Denied"

Cheng - Please email the full token request URL to support@payeezy.com. Our implementations team will be able to assist.


chengzhao8494
Re: Testing integration failed : "Access Denied"

Thanks.


sadiegolf8470
Re: Testing integration failed : "Access Denied"

I just had the same issue, it was due to the sandbox URL being hardcoded into the payeezy_us_v5.1.js on line 40:

var n = "api-cert.payeezy.com";

Why in the world you would hardcode your sandbox URL into your JS library is beyond me.


rohitrajagopal3538
Re: Testing integration failed : "Access Denied"

Sadie - Thanks for your feedback. You do have a valid point. We will remove the hardcoding in the JS file in a future release.

Regards,

Payeezy team


mikemckee8949
Re: Testing integration failed : "Access Denied"

I had things running perfectly fine in the sandbox environment with Acme Sock fake merchant except for the quirk that no matter what token I passed on recurring payments, they always got approved. So, I realized that this must just be a quirk with the sandbox and therefore I need to test something against a demo FirstData Gateway Account.

Specifically, I need to connect my developer account to a demo FirstData Gateway Account so that I can see the transactions coming in. I created one, generated an HMAC and saved that, created a TA Token and saved that, and then went back to my developer account to create a new sandbox account and link it to this. But in all the permutations of keys and ta_tokens in the Javascript Token API, I now get either access denied or invalid ta_token. I also edited the Javascript so that I used the live URL and the test URL -- no luck. Same problems.

What is the official procedure that I need to do to connect my developer account with a demo FirstData Gateway Account? And then where should I be getting the API Key, JS Security Key, and TA Token for the gateway account? And should I be setting the Javascript URL on that to live or sandbox URL? From there, once I have this token, where should I be retrieving the API Key, Secret Key, and Merchant Token for this demo FirstData Gateway Account?


barathvignesh17446
Re: Testing integration failed : "Access Denied"

I'm facing the issue. What is the solution for this?


christopherlord730
Re: Testing integration failed : "Access Denied"

You will need to email payeezyboarding@firstdata.com and provide the demo account name or Gateway ID and confirm your Payeezy Developer email address so the corrections can be made.


christopherlord730
Re: Testing integration failed : "Access Denied"

You may email payeezyboarding@firstdata.com and request the demo account to be resynchronized to your developer account. You'll need to provide the demo account name that shows on Payeezy along with the Gateway ID in question.