5 posts / 0 new
Last post
priydarshanjoshi7685
403 : forbidden error in Android

We are trying to do Live Payment integration but every time we are getting 401 or 403 error :

Below is our Request string :

URL : https://api.payeezy.com/v1/transactions
Payload data : {"amount":"1","credit_card":{"cvv":"***","exp_date":"***","cardholder_name":"*******","card_number":"***************","type":"Mastercard"},"currency_code":"USD","method":"credit_card","merchant_ref":"372275578881","transaction_type":"authorize"}

We are using code provided by you which is "payeezy_android-master\Payeezy-International\Direct-NonTokenisedTransactions".

Please guide us here.


rohitrajagopal3538
Re: 403 : forbidden error in Android

Hi Priyadarshan,

Can you provide the full response message as well?

Regards,

Payeezy team


priydarshanjoshi7685
Re: 403 : forbidden error in Android

We have been trying to post the full message on this screen but it has triggered spam filtering at your end. We have already sent request to unblock it, but I am not sure if that would work. Hence Please find first line of the message that we receive:

1941-1990/com.pne.payeezynontokenizedexample W/DefaultRequestDirector﹕ Authentication error: Unable to respond to any of these challenges:


priydarshanjoshi7685
Re: 403 : forbidden error in Android

Hi,

I put text file on Dropbox that contain exception log. Please refer below link for that,

http://bit.ly/1XefpbN

Please help me as soon as possible. Also suggest me which changes i have to make in Http Header part and request payload of api call in android for live.

Regards,

Priyadarshan


rohitrajagopal3538
Re: 403 : forbidden error in Android

The file in dropbox contains the error log from your code and not the API response. API responses will contain the correlation ID. In any case, going by the data in that file, it appears that you are getting the "401 - Unauthorized' error message. This happens when the API credentials or Merchant token or js_security_key is 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.

If none of this works, please reach out to our technical support team at support@payeezy.com. In your email include the full API response.

Regards,

Payeezy team