Universal API

Integration

Process Description
Ready-Made Solutions
Universal API
Technical Documentation

 

Our API provides multiple variants for working with payments guaranteed to satisfy every business need. It allows for transaction processing, managing of payments and report creation for all the operations.int_api

 

API characteristics

  • Payments are XML messages sent in an encrypted form;
  • API calls are completed via HTTPS protocol;
  • Both POST and GET methods are supported.

 

CardPay SDK

The CardPay SDK enables developers to access CardPay's API functionality on platforms - PHP, C#, Python.

Download Cardpay SDK for PHP
Download Cardpay SDK for C#
Download Cardpay SDK for Python

API methods

Payment

Allows the sending of transactions to GMC Online Payments for further processing. Payments are sent as an HTML form containing product details, services description and price as well as information of your shops invoice.
https://cardpay.com/MI/cardpayment.html

Input parameters

Parameter Description Possible values Example
orderXML The message encrypted according to BASE64 XML method with transactional information Any PE9SREVSIFdBTExF
VF9JRD0iMjEiIE
9SREVSX05VTUJ
sha512 XML message + secret word encrypted according to sha512 method Any e99c4e8f4a8a9b18
d4f6e06a9eb0ec8e
0b692367890241e
ba8cfd089bf9ceb7c
51a5158600af954024b
75ba86022889171a9
6d5bf95f8063995
73903fd6b977e

Application

<HTML>
    <BODY>
        <FORM ACTION="https://cardpay.com/MI/cardpayment.html" METHOD="POST">
        <INPUT TYPE="HIDDEN" NAME="orderXML"
	VALUE="PE9SREVSIFdBTExFVF9JRD0iMjEiI
    	E9SREVSX05VTUJFUj0iNDU4MjEwIiBOQU1FPSJULVNoaXJ0LUEiIERFU0NSSVB
		USU9OPSJCZXN0IGV2ZXIgc2VlbiBULVNoaXJ0IiBBTU9VTlQ9IjI5MS44NiINC
		kVNQUlMPSJjdXN0b21lckBleGFtcGxlLmNvbSIvPg=="/>
		
		<INPUT TYPE="IMAGE" WIDTH="170" HEIGHT="30"
		SRC="http://www.cardpay.com/images/logo.jpg" ALT="Pay Now With CardPay!"/>
		</FORM>
	</BODY>
</HTML>

Answer

     <ORDER ID="111118" NUMBER="21" STATUS="hold"/>

Transaction report

Allows display of transaction details for one or ten last transactions within a particular time period.
https://cardpay.com/MI/service/order-report

Input parameters

Parameter Description Possible values Example
client_login Unique shop login coinciding with the system administrative Web-interface login Any demo
client_password Shop password coinciding with the system administrative Web-interface password Any demo
wallet_id Shop ID Positive integer 101

Application

https://cardpay.com/MI/service/order-report?client_login=demo&client_password=demo&wallet_id=101  

Answer

<response type="order_report" orders_qty="1" is_executed="yes" details="Successfully executed on 2012-09-11 10:57:46">
    <orders>
    	<orderu id="297115" status_name="begin" date_in="2012-09-10 00:00" amount="1" orderu_number="561865" email="test@cardpay.com"/>
	</orders>
</response>
Our Partners