RU

Working with the API

The Merchant's system interacts with the Payture payment gateway using a request-response model.

Request

A request with the required parameters is built on the Merchant's side and sent using the GET or POST method over HTTPS. For POST requests, the "Content-Type" header must be set to "application/x-www-form-urlencoded".

Request URL:

https://{Environment}.payture.com/{Interface}/{Command}

{Environment} — the environment; provided together with the test and production access credentials

{Interface} — the API interface being used

{Command} — the name of the command being executed

Important!

Parameter names in requests are case-sensitive.

Response

The payment gateway returns request results in XML format, UTF-8 encoded.

Response structure:

<{Command} Key1="Value1" Key2="Value2"/>

Important!

When integrating, make sure your XML parser works in the most tolerant mode possible. Missing optional parameters, a change in attribute order or the appearance of new attributes must not cause a parsing error. Compare values case-insensitively wherever possible.

On this page