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.
Reference information
Technically, accepting a bank card for payment always comes down to debiting funds from the Customer's card. Throughout this documentation, this debit process is called a "payment". A payment can consist of a single…
Payture API
Payture API is a high-performance, easy-to-use interface for automating e-commerce operations. The Payture payment gateway ensures highly reliable and secure payment processing.
