4 posts / 0 new
Last post
vimalmurugan1761
Is this possible to send direct request to payeezy URL?

Hi,

Instead of using payeezy client. Can i directly call the url "https://api-cert.payeezy.com/v1/transactions" with required parameters such as header field values using NSURLReuest class.If it is possible means send some sample code for making direct request.

Thanks,
Vimal M


nileshdafeniles...
Re: Is this possible to send direct request to payeezy URL?

Hi Vimal,

We recommend to make calls to the payeezy via standard API calls. Non standard methods of making calls to payeezy API generally has its overhead. The standard way to make calls to "https://api-cert.payeezy.com/v1/transactions" is shown on the payeezy website. Non standard way of calling like using the NSURLReuest class may result in unexpected behaviour and is not recommended.

Thanks and Regards,

Nilesh Dafe


ayushdixit19862
Re: Is this possible to send direct request to payeezy URL?

Hi Nilesh,

I am making calls to the payeezy via standard API calls. The standard way to make calls to "https://api-cert.payeezy.com/v1/transactions" but it is giving an error Error Info Code=403 "(null)" UserInfo={message=HMAC validation Failure, code=403}

Thanks and Regards,

Ayush


christopherlord730
Re: Is this possible to send direct request to payeezy URL?

What language are you using? The HMAC validation error means the value being supplied for the HTTP header 'Authorization' is not valid.

From Docs & Sandbox

Construct the data param by appending the parameters below in the same order as shown. a. apikey - API key of the developer. b. nonce - secure random number. c. timestamp - epoch timestamp in milliseconds. d. token - Merchant Token. e. payload - Actual body content passed as post request. Compute HMAC SHA256 hash on the above data param using the key below f. apiSecret - Consumer Secret token for the given api key Calculate the base64 of the hash which would be our required Authorization header value.