Вы находитесь на странице: 1из 60

20.02.

2012

ASSIST

. 2 60

...................................................................................................... 2
1. .................................... 3
1.1 .................................................................................. 3
1.2 ................................................................. 6
1.3 ........................................................................... 6
1.4 ................................................................. 8
2. ........................................................................ 8
2.1 ............................................. 8
2.2 ............ 12
2.3 ................................................................ 12
2.3.1 ................................................... 12
2.3.2 ....................................................................... 13
2.3.3 ........................................................................................... 15
3. .............................................................. 18
3.1 E-mail............................................................. 18
3.2 ................................................................... 18
3.3 ......................................................... 19
3.4 .................................... 21
3.5 ......................... 26
4. - ................................................................................................ 29
4.1 .............................................. 29
4.2 ................................................................ 35
4.3 .............................................................................. 40
5. ................................................................................................. 43
................................................................................. 43
5.1 orderstate ............................................................ 44
5.2 operationtype ....................................................... 44
5.3 operationtstate.............................................. 44
5.4 response_code....................................................... 44
5.5 meantypename....................................... 45
5.6 meansubtype..................................... 45
5.7 ........................................................................................ 46
5.8 currency ................................................................... 46
5.9 country (ISO 3166) ..................................................... 47
5.10 state .................................................................. 53
5.11 state ..................................................................... 55
5.12 ..................................... 57
5.13 ......................................................................... 60

. 3 60

ASSIST

1.
1.1
:

,

,


(
)

ASSIST

. 4 60

1. - .
,
.
.
2.
(billnumber) , .

, .
3. ( ,
), .
.
.
,

.
4.
, .
( )
, .
Approved.
.
5.
.
6.
.
( -).

, . ,
.

, -.

ASSIST

. 5 60

.
1. - .
,
.
.
2.
(billnumber) , .

, .
3. ( ),
. .
.
,

.
4.
, .
( )
, .
Delayed.
.
5. 5.1
,
( , . .).
Approved.
5.2
.
6.
.
( -).

, . ,
.

, -.

. 6 60

ASSIST

1.2

, :

http://www.assist.ru/shop_register.htm

).

Merchant_ID.

- ,

HTML

https://account.paysecure.ru/

ASSIST.

ASSIST,
. ASSIST URL

URL

(,

..) .

1.3
-
.
,
, .
-, ,
HTML-,
. <FORM>
(GET POST) ( UTF-8):
<FORM METHOD="POST"
ACTION="URL ">
</FORM>

/ (NAME/VALUE). , ,
, :
<INPUT TYPE="HIDDEN" NAME="Merchant_ID" VALUE=" Merchant_ID">

ASSIST

. 7 60

,
:

Merchant_ID ;

OrderNumber ,
;

OrderAmount ;

,
,
(, , Email, .
.) .
URL :
https://test.paysecure.ru/pay/order.cfm
, :
<FORM ACTION=" https://test.paysecure.ru/pay/order.cfm" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="Merchant_ID" VALUE=" Merchant_ID">
<INPUT TYPE="HIDDEN" NAME="OrderNumber" VALUE=" B20042011_27">
<INPUT TYPE="HIDDEN" NAME="OrderAmount" VALUE="205.50">
<INPUT TYPE="HIDDEN" NAME="OrderComment" VALUE=" ">
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="">
</FORM>

, (, , Email .)
.
.
.
, :
<FORM ACTION=" https://test.paysecure.ru/pay/order.cfm" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="Merchant_ID" VALUE=" Merchant_ID">
<INPUT TYPE="HIDDEN" NAME="OrderNumber" VALUE="A03032011_26">
<INPUT TYPE="HIDDEN" NAME="OrderAmount" VALUE="66.66">
<INPUT TYPE="HIDDEN" NAME="OrderCurrency" VALUE="RUB">
<INPUT TYPE="HIDDEN" NAME="FirstName" VALUE="Test">
<INPUT TYPE="HIDDEN" NAME="LastName" VALUE="Testov">
<INPUT TYPE="HIDDEN" NAME="Email" VALUE="test@assist.ru">
<INPUT TYPE="HIDDEN" NAME="OrderComment" VALUE=" ">
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="">
</FORM>

2.1.
,
5.13 .

:

. 8 60

ASSIST

,
,
TestMode=1 (
. 2.1).

1.4

:

(support@assist.ru) ,
ASSIST
;

(support@assist.ru) URL
URL (,
..) ;

TestMode
TestMode=0;

- .

! ,
URL, ASSIST.

2.
2.1
URL :
https://test.paysecure.ru/pay/order.cfm
:

Merchant_ID

OrderNumber

128


1-

TestMode

0
,
1

Language

RU - ,
EN -

OrderComment

256

Delay

. 9 60

ASSIST

OrderAmount

, 15
(
., ,)


(, 10.34)
,
OrderAmount (
. 5.8
)

OrderCurrency

Lastname

70

Firstname

70

Middlename

70

Email

128

E-mail

Address

256

HomePhone

64

WorkPhone

20

MobilePhone

20

Fax

20

Country

State

City

70

Zip

25

255

URL ,


(


)

URL_RETURN

URL_RETURN_OK

URL_RETURN_NO

CardPayment

YMPayment

255

255

1

,
0

YandexMoney,
0


URL_RETURN,

URL

,

URL ,


(


)


URL_RETURN,

URL ,

URL ,



(
URL

)



,
1
(

)



YandexMoney,
1
(

ASSIST

WMPayment

QIWIPayment

QIWIMtsPayment

QIWIMegafonPayment

QIWIBeelinePayment

AssistIDPayment

WebMoney,
0

QIWI,
0

1; 0

1; 0

1; 0

1

AssistID,
0

. 10 60
YandexMoney
)



WebMoney,
1
(
WebMoney
)



QIWI,

1
( QIWI
)



( )



( )



( )



AssistID,
1
(

)
,
:
Merchant_ID;OrderNumber;OrderA
mount;OrderCurrency
.

Signature


MD5 .

RSA .
- 1024.

.

,

BASE64.

RecurringIndicator

RecurringMinAmount

, 15
(
., ,)



.
RecurringIndicator
=1

, 15

RecurringMaxAmount

(
., ,)

RecurringIndicator
=1

RecurringPeriod

, 10

. 11 60

ASSIST

RecurringIndicator
=1

RecurringMaxDate

(CardPayment,


DD.MM.YYYY

WMPayment,


.
RecurringIndicator
=1

AssistIDPayment

..),

1,

.
,
.
0, .
, :
<FORM ACTION=" https://test.paysecure.ru/pay/order.cfm" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="Merchant_ID" VALUE=" Merchant_ID">
<INPUT TYPE="HIDDEN" NAME="OrderNumber" VALUE="A20042011_28">
<INPUT TYPE="HIDDEN" NAME="OrderAmount" VALUE="237.40">
<INPUT TYPE="HIDDEN" NAME="OrderCurrency" VALUE="USD">
<INPUT TYPE="HIDDEN" NAME="Delay" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="Language" VALUE="RU">
<INPUT TYPE="HIDDEN" NAME="Email" VALUE="test@test.ru">
<INPUT TYPE="HIDDEN" NAME="OrderComment" VALUE=" 28-A">
<INPUT TYPE="HIDDEN" NAME="URL_RETURN_OK" VALUE="http://www.URL.ru/yes">
<INPUT TYPE="HIDDEN" NAME="URL_RETURN_NO" VALUE="http://www.URL.ru/no">
<INPUT TYPE="HIDDEN" NAME="CardPayment" VALUE="1">
<INPUT TYPE="HIDDEN" NAME="WMPayment" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="YMPayment" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="AssistIDPayment" VALUE="0">
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="">
</FORM>


,
. ,
( Firstname, Lastname, Email)
, .
, ,

, .
,
( ). ,
100 USD ( ), , 05.04.2011,
2822,77 RUB ().

Approved (), . 5.1 .

. 12 60

ASSIST

2.2


(, ) ,
.

.

https://account.paysecure.ru/

. ,
URL_RETURN_OK. ,
URL_RETURN.
Billnumber
OrderNumber ,
, :
http://URL /?billnumber=__&ordernumber=_

URL_RETURN_OK URL_RETURN ( URL_RETURN_OK URL_RETURN_NO)

URL_RETURN_OK

URL_RETURN,

, .
,
URL_RETURN_OK
(
. 3.3) , .

2.3

( ) ( ).

2.3.1

.
, ,
( 2.1),
Delay=1.
<FORM ACTION=" https://test.paysecure.ru/pay/order.cfm" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="Merchant_ID" VALUE=" Merchant_ID">
<INPUT TYPE="HIDDEN" NAME="OrderNumber" VALUE="A20042011_28">
<INPUT TYPE="HIDDEN" NAME="OrderAmount" VALUE="237.40">
<INPUT TYPE="HIDDEN" NAME="OrderCurrency" VALUE="USD">
<INPUT TYPE="HIDDEN" NAME="Delay" VALUE="1">

. 13 60

ASSIST

<INPUT TYPE="HIDDEN" NAME="Language" VALUE="RU">


<INPUT TYPE="HIDDEN" NAME="Email" VALUE="test@test.ru">
<INPUT TYPE="HIDDEN" NAME="OrderComment" VALUE=" 28-A">
<INPUT TYPE="HIDDEN" NAME="URL_RETURN_OK" VALUE="http://www.URL.ru/yes">
<INPUT TYPE="HIDDEN" NAME="URL_RETURN_NO" VALUE="http://www.URL.ru/no">
<INPUT TYPE="HIDDEN" NAME="CardPayment" VALUE="1">
<INPUT TYPE="HIDDEN" NAME="WMPayment" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="YMPayment" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="AssistIDPayment" VALUE="0">
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="">
</FORM>


, .


Delayed ( ),
. 5.1 .

.
.
! ,

.

2.3.2

( 4-14
) https://account.paysecure.ru/ .
, -,
4- , UCS 13
, 20 .
HTTP POST
SOAP ( UTF-8).
URL :
https://test.paysecure.ru/charge/charge.cfm.

:

Billnumber

,
,

Merchant_ID

15 16

. 14 60

ASSIST

Login

20

Password

30

, 15
Amount

( .,
,)

Currency

ClientIP

15 ,
4 .

IP ,

Language

RU
EN

RU

1 CSV (
)
2 WDDX
3 XML
4 SOAP

Format

Amount,

Currency

.
.

, .
,
, ,
.
, (
, -)
( ).
, .

.

Approved (), Response_code AS000.
:

ordernumber

responsecode

recommendation

message

ordercomment

orderdate

(GMT)

amount

currency

ASSIST

meantypename

meannumber

lastname

firstname

middlename

issuebank

Email

Email

bankcountry

rate

approvalcode

meansubtype

cardholder

ipadress

IP-

protocolname

testmode

customermessage

orderstate

processingname

operationtype

billnumber

billnumber

orderamount

ordercurrency

packetdate

(GMT)

. 15 60

signature

2.3.3
HTTP POST:
<FORM ACTION="https://test.paysecure.ru/charge/charge.cfm" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="BillNumber" VALUE="545000000000001">
<INPUT TYPE="HIDDEN" NAME="Merchant_ID" VALUE=" Merchant_ID">
<INPUT TYPE="HIDDEN" NAME="Login" VALUE=" ">
<INPUT TYPE="HIDDEN" NAME="Password" VALUE=" ">
<INPUT TYPE="HIDDEN" NAME="Amount" VALUE="100">
<INPUT TYPE="HIDDEN" NAME="Currency" VALUE="RUR">
<INPUT TYPE="HIDDEN" NAME="Language" VALUE="0">
<INPUT TYPE="HIDDEN" NAME="Format" VALUE="3">
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="">
</FORM>

CSV:
ordernumber: 0001-01 responsecode: AS000 recommendation: message:
. ordercomment: orderdate: 01.01.2011 09:00:05 amount:
100.00 currency: RUB meantypename: VISA meannumber: 411111****1111 lastname:
Testov firstname: Test middlename: Testovich issuebank: BANK email: test@testpost.ru
bankcountry: rate: 1 approvalcode: meansubtype: Corporate Purchasing Card

ASSIST

. 16 60

cardholder: TEST ipaddress: 111.23.11.23 protocoltypename: testmode: 1


customermessage: . orderstate: Approved processingname: Name
operationtype: 200 billnumber: 511111100000001.2 orderamount: 100.00
ordercurrency: RUB packetdate: 01.01.2011 09:01:47 signature:

XML:
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<!DOCTYPE result [
<!ATTLIST result
firstcode CDATA #REQUIRED
secondcode CDATA #REQUIRED
count CDATA #REQUIRED
>
<!ELEMENT result (orders?)>
<!ELEMENT orders (order)>
<!ELEMENT order (billnumber?, operationtype?, protocoltypename?, ordernumber?, orderdate?,
response_code?, orderstate?, message?, customermessage?, recommendation?,
ordercomment?, amountorg?, currencycodeorg?, amount?, currencycode?, meantype_id?,
meantypename?, meansubtype?, meannumber?, cardholder?, firstname?, lastname?,
middlename?, email?, ipaddress?, rate?, approvalcode?, issuebank?, bankcountry?,
processingname?, testmode?, packetdate?, signature?, checkvalue?)>
<!ELEMENT billnumber (#PCDATA)>
<!ELEMENT operationtype (#PCDATA)>
<!ELEMENT protocoltypename (#PCDATA)>
<!ELEMENT ordernumber (#PCDATA)>
<!ELEMENT orderdate (#PCDATA)>
<!ELEMENT response_code (#PCDATA)>
<!ELEMENT orderstate (#PCDATA)>
<!ELEMENT message (#PCDATA)>
<!ELEMENT customermessage (#PCDATA)>
<!ELEMENT recommendation (#PCDATA)>
<!ELEMENT ordercomment (#PCDATA)>
<!ELEMENT amountorg (#PCDATA)>
<!ELEMENT currencycodeorg (#PCDATA)>
<!ELEMENT amount (#PCDATA)>
<!ELEMENT currencycode (#PCDATA)>
<!ELEMENT meantype_id (#PCDATA)>
<!ELEMENT meantypename (#PCDATA)>
<!ELEMENT meansubtype (#PCDATA)>
<!ELEMENT meannumber (#PCDATA)>
<!ELEMENT cardholder (#PCDATA)>
<!ELEMENT firstname (#PCDATA)>
<!ELEMENT lastname (#PCDATA)>
<!ELEMENT middlename (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT ipaddress (#PCDATA)>
<!ELEMENT rate (#PCDATA)>
<!ELEMENT approvalcode (#PCDATA)>
<!ELEMENT issuebank (#PCDATA)>
<!ELEMENT bankcountry (#PCDATA)>
<!ELEMENT processingname (#PCDATA)>
<!ELEMENT testmode (#PCDATA)>
<!ELEMENT packetdate (#PCDATA)>
<!ELEMENT signature (#PCDATA)>
<!ELEMENT checkvalue (#PCDATA)>
]>
<result firstcode="0" secondcode="0" count="1">
<orders> <order>
<ordernumber> 0001-01 </ordernumber>
<responsecode> AS000 </responsecode>
<recommendation> </recommendation>
<message> . </message>
<ordercomment> </ordercomment>
<orderdate> 01.01.2011 10:51:53 </orderdate>

ASSIST

. 17 60

<amount> 100.00 </amount>


<currency> RUB </currency>
<meantypename> VISA </meantypename>
<meannumber> 411111****1111 </meannumber>
<lastname> Testov </lastname>
<firstname> Test </firstname>
<middlename> Testovich </middlename>
<issuebank> BANK </issuebank>
<email> test@testpost.ru </email>
<bankcountry> </bankcountry>
<rate> 1 </rate>
<approvalcode> </approvalcode>
<meansubtype> Corporate Purchasing Card </meansubtype>
<cardholder> TEST </cardholder>
<ipaddress> 10.23.10.23 </ipaddress>
<protocoltypename> </protocoltypename>
<testmode> 1 </testmode>
<customermessage> . </customermessage>
<orderstate> Approved </orderstate>
<processingname> Name </processingname>
<operationtype> 200 </operationtype>
<billnumber> 511111100000001.2 </billnumber>
<orderamount> 100.00 </orderamount>
<ordercurrency> RUB </ordercurrency>
<packetdate> 01.01.2011 10:53:45 </packetdate>
<signature> </signature>
</order> </orders>
</result>

<cardnumber> -
6 4 , *.
orderstate
Approved (), response_code AS000.

Response_code
AS100- AS998.
XML, ( ):
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<!DOCTYPE result [...]>
<result firstcode="7" secondcode="102" count="0"></result>

5.12 .
SOAP:
<?xml version='1.0' encoding='utf-8' standalone='no'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' SOAPENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
<SOAP-ENV:Body SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
<ASS-NS:MakeChargeResponse xmlns:ASS-NS='http://www.assist.ru/message/'>
<return xmlns:si='http://www.assist.ru/type/' xsi:type='si:SOAPStruct'>
<ordernumber xsi:type='xsd:string'>0001-01</ordernumber>
<responsecode xsi:type='xsd:string'>AS000</responsecode>
<recommendation xsi:type='xsd:string'></recommendation>
<message xsi:type='xsd:string'> .</message>
<ordercomment xsi:type='xsd:string'> </ordercomment>
<orderdate xsi:type='xsd:string'>01.01.2011 11:23:13</orderdate>
<amount xsi:type='xsd:string'>100.00</amount>
<currency xsi:type='xsd:string'>RUB</currency>

. 18 60

ASSIST

<meantypename xsi:type='xsd:string'>VISA</meantypename>
<meannumber xsi:type='xsd:string'>411111****1111</meannumber>
<lastname xsi:type='xsd:string'>Testov</lastname>
<firstname xsi:type='xsd:string'>Test</firstname>
<middlename xsi:type='xsd:string'>Testovich</middlename>
<issuebank xsi:type='xsd:string'>New Bank</issuebank>
<email xsi:type='xsd:string'>test@testpost.ru</email>
<bankcountry xsi:type='xsd:string'></bankcountry>
<rate xsi:type='xsd:string'>1</rate>
<approvalcode xsi:type='xsd:string'></approvalcode>
<meansubtype xsi:type='xsd:string'>Classic</meansubtype>
<cardholder xsi:type='xsd:string'>TEST</cardholder>
<ipaddress xsi:type='xsd:string'>11.23.11.23</ipaddress>
<protocoltypename xsi:type='xsd:string'></protocoltypename>
<testmode xsi:type='xsd:string'>1</testmode>
<customermessage xsi:type='xsd:string'> .</customermessage>
<orderstate xsi:type='xsd:string'>Approved</orderstate>
<processingname xsi:type='xsd:string'>Name</processingname>
<operationtype xsi:type='xsd:string'>200</operationtype>
<billnumber xsi:type='xsd:string'>511111100000001.2</billnumber>
<orderamount xsi:type='xsd:string'>100.00</orderamount>
<ordercurrency xsi:type='xsd:string'>RUB</ordercurrency>
<packetdate xsi:type='xsd:string'>01.01.2011 11:28:26</packetdate>
<signature xsi:type='xsd:string'></signature>
</return>
</ASS-NS:MakeChargeResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

3.
, -
,
https://account.paysecure.ru/.
-
Email,
, .
-
.

3.1 E-mail
E-mail,
, -
, - .
-:
Billnumber: 000000000000001 OperationType: OrderNumber:0001-01 Total:125
Currency:RUB Status: Comment: TEST Response_Code:AS000 MeanType:MC

3.2

, .

. 19 60

ASSIST

https://account.paysecure.ru/. Email
zip-, ,
.
:
BillNumber:500000000000000;BillNumberExt:500000000000000.1;OrderNumber:000101;OrderState:Approved;OrderTest:0;OrderAmount:100; OrderCurrency:
RUB;OrderDate:13.04.2011 14:01:43;OrderComment:
;CustomerName:Testov Test
T.;OperationType:Approve;OperationState:Success;Protocol:NET;OperationAmount:100;Op
erationCurrency: RUB; OperationDate:13.04.2011 14:01:44;MeanType:MC;MeanSubType:
Corporate Purchasing Card;MeanNumber:
552926****6119;CardHolder:TEST;OperationResult:Success;ErrorMessage:;Recommendat
ion:; Response_Code:AS000;ApprovalCode:X50662; ProcessingName:Fake;

3.3
( )
-. 5.1 .

HTTP POST SOAP ( UTF-8).
URL :
https://test.paysecure.ru/orderstate/orderstate.cfm.
-
. , ,
STARTDAY, STARTMONTH, STARTYEAR, ,
ENDDAY, ENDMONTH, ENDYEAR, .
,
. ,
.
:

, 128

Merchant_ID

Login

20

Password

30

StartYear


YYYY

StartMonth

1-12

StartDay

1-31

StartHour

0-23

Ordernumber


(GMT)

. 20 60

ASSIST

0-59


YYYY

EndMonth

1-12

EndDay

1-31

EndHour

0-23

EndMin

0-59

1
2
3
4

StartMin

EndYear

Format

CSV
WDDX
XML
- SOAP


(GMT)

.
SOAP,
POST

HTTP POST 1001-01,


1 2011 (GMT):
<FORM ACTION="https://test.paysecure.ru/orderstate/orderstate.cfm" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="Ordernumber" VALUE="1001-01">
<INPUT TYPE="HIDDEN" NAME="Merchant_ID" VALUE=" Merchant_ID">
<INPUT TYPE="HIDDEN" NAME="Login" VALUE=" ">
<INPUT TYPE="HIDDEN" NAME="Password" VALUE=" ">
<INPUT TYPE="HIDDEN" NAME="Startyear" VALUE="2011">
<INPUT TYPE="HIDDEN" NAME="Startmonth" VALUE="04">
<INPUT TYPE="HIDDEN" NAME="Startday" VALUE="01">
<INPUT TYPE="HIDDEN" NAME="Starthour" VALUE="00">
<INPUT TYPE="HIDDEN" NAME="Startmin" VALUE="00">
<INPUT TYPE="HIDDEN" NAME="Endyear" VALUE="2011">
<INPUT TYPE="HIDDEN" NAME="Endmonth" VALUE="04">
<INPUT TYPE="HIDDEN" NAME="Endday" VALUE="02">
<INPUT TYPE="HIDDEN" NAME="Endhour" VALUE="00">
<INPUT TYPE="HIDDEN" NAME="Endmin" VALUE="00">
<INPUT TYPE="HIDDEN" NAME="Format" VALUE="3">
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="Submit">
</FORM>

billnumber

ordernumber

orderstate

orderamount

ordercurrency

packetdate

(GMT)

checkvalue

uppercase(md5(uppercase(md5(SALT) + md5()))), SALT


;
merchant_id, ordernumber, orderamount, ordercurrency, orderstate
( ), + -

CSV:
ordernumber;billnumber;orderamount;ordercurrency;orderstate;packetdate;signature;checkval
ue;2306-08;551508910014022;100.00;RUB;Approved;23.06.2011 11:59;; D6313123A5C09;

XML:
<?xml version='1.0' encoding='utf-8' standalone='yes'?>

. 21 60

ASSIST

<!DOCTYPE result [
<!ATTLIST result
firstcode CDATA #REQUIRED
secondcode CDATA #REQUIRED
count CDATA #REQUIRED
>
<!ELEMENT result (order*)>
<!ELEMENT order
(ordernumber?,billnumber?,orderamount?,ordercurrency?,orderstate?,packetdate?,checkvalue?)
>
<!ELEMENT ordernumber (#PCDATA)>
<!ELEMENT billnumber (#PCDATA)>
<!ELEMENT orderamount (#PCDATA)>
<!ELEMENT ordercurrency (#PCDATA)>
<!ELEMENT orderstate (#PCDATA)>
<!ELEMENT packetdate (#PCDATA)>
<!ELEMENT checkvalue (#PCDATA)>
]>
<result firstcode='0' secondcode='0' count='1'>
<order> <ordernumber>0001-01</ordernumber>
<billnumber>511111100000001</billnumber>
<orderamount>100.00</orderamount>
<ordercurrency>RUB</ordercurrency>
<orderstate>Approved</orderstate>
<packetdate>01.01.2011 11:58</packetdate>
<signature></signature>
<checkvalue> </checkvalue>
</order>
</result>

XML, ( ):
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<!DOCTYPE result [...]>
<result firstcode="7" secondcode="102" count="0"></result>

5.12 .
- SOAP :
https://test.paysecure.ru/orderstate/orderstate.wsdl

3.4
,
(, , ),

(,
,

),

.

HTTP POST SOAP ( UTF-8).
URL :
https://test.paysecure.ru/orderresult/orderresult.cfm.
-
( GMT).
, .
:

. 22 60

ASSIST

Ordernumber

, 128

Merchant_ID

Login

20

Password

30


YYYY

1-12

1-31

0-23

0-59

StartYear
StartMonth

StartDay

StartHour

StartMin

EndYear


YYYY

EndMonth

1-12

EndDay

1-31

EndHour

0-23

EndMin

0-59

Language

Format
/


(GMT)


(GMT)

RU
EN
3 XML
4 - SOAP

EN

.
SOAP,
POST

HTTP POST:
<FORM ACTION="https://test.paysecure.ru/orderresult/orderresult.cfm"
METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="Orderumber" VALUE="1001-01">
<INPUT TYPE="HIDDEN" NAME="Merchant_ID" VALUE=" Merchant_ID">
<INPUT TYPE="HIDDEN" NAME="Login" VALUE=" ">
<INPUT TYPE="HIDDEN" NAME="Password" VALUE=" ">
<INPUT TYPE="HIDDEN" NAME="Startyear" VALUE="2011">
<INPUT TYPE="HIDDEN" NAME="Startmonth" VALUE="04">
<INPUT TYPE="HIDDEN" NAME="Startday" VALUE="01">
<INPUT TYPE="HIDDEN" NAME="Starthour" VALUE="00">
<INPUT TYPE="HIDDEN" NAME="Startmin" VALUE="00">
<INPUT TYPE="HIDDEN" NAME="Endyear" VALUE="2011">
<INPUT TYPE="HIDDEN" NAME="Endmonth" VALUE="04">
<INPUT TYPE="HIDDEN" NAME="Endday" VALUE="02">
<INPUT TYPE="HIDDEN" NAME="Endhour" VALUE="00">
<INPUT TYPE="HIDDEN" NAME="Endmin" VALUE="00">
<INPUT TYPE="HIDDEN" NAME="Format" VALUE="3">
<INPUT TYPE="HIDDEN" NAME="Language" VALUE="EN">
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="">
</FORM>

ASSIST

. 23 60


billnumber

ordernumber

testmode

ordercomment

orderamount

ordercurrency

firstname

lastname

middlename

Email

Email

orderdate

(GMT)

orderstate

packetdate

(GMT)

signature
checkvalue

uppercase(md5(uppercase(md5(SALT) + md5()))), SALT


;
merchant_id, ordernumber, orderamount, ordercurrency,
orderstate ( ), + -


billnumber

billnumber

operationtype

operationstate

amount

currency

ipadress

IP-

clientip

IP-

meantype_id

meansubtype

meannumber

cardholder

issuebank

bankcountry

responsecode

message

customermessage

recommendation

approvalcode

ASSIST

. 24 60

protocolname

processingname

operationdate

(GMT)

authresult

3DSecure (Y - , N - ,
A - Attempt, U )

authrequired

(1 , 0
, -1 , null
)

! ,
(, , ). ,
, .
.

.
XML :
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<!DOCTYPE result [
<!ATTLIST result
firstcode CDATA #REQUIRED
secondcode CDATA #REQUIRED
count CDATA #REQUIRED
>
<!ELEMENT result (order*)>
<!ELEMENT order
(ordernumber?,billnumber?,testmode?,ordercomment?,orderamount?,ordercurrency?,firstname?
,lastname?,middlename?,email?,orderdate?,orderstate?,packetdate?,signature?,checkvalue?,ope
ration*)>
<!ELEMENT ordernumber (#PCDATA)>
<!ELEMENT billnumber (#PCDATA)>
<!ELEMENT testmode (#PCDATA)>
<!ELEMENT ordercomment (#PCDATA)>
<!ELEMENT orderamount (#PCDATA)>
<!ELEMENT ordercurrency (#PCDATA)>
<!ELEMENT firstname (#PCDATA)>
<!ELEMENT lastname (#PCDATA)>
<!ELEMENT middlename (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT orderdate (#PCDATA)>
<!ELEMENT orderstate (#PCDATA)>
<!ELEMENT packetdate (#PCDATA)>
<!ELEMENT signature (#PCDATA)>
<!ELEMENT checkvalue (#PCDATA)>
<!ELEMENT operation
(billnumber?,operationtype?,operationstate?,amount?,currency?,clientip?,ipaddress?,meantype_i
d?,meantypename?,meansubtype?,meannumber?,cardholder?,issuebank?,bankcountry?,respons
ecode?,message?,customermessage?,recommendation?,approvalcode?,protocoltypename?,proce
ssingname?,operationdate?,authresult?,authrequired?)>
<!ELEMENT operationtype (#PCDATA)>
<!ELEMENT operationstate (#PCDATA)>
<!ELEMENT amount (#PCDATA)>
<!ELEMENT currency (#PCDATA)>
<!ELEMENT clientip (#PCDATA)>
<!ELEMENT ipaddress (#PCDATA)>
<!ELEMENT meantype_id (#PCDATA)>
<!ELEMENT meantypename (#PCDATA)>
<!ELEMENT meansubtype (#PCDATA)>
<!ELEMENT meannumber (#PCDATA)>

ASSIST

<!ELEMENT cardholder (#PCDATA)>


<!ELEMENT issuebank (#PCDATA)>
<!ELEMENT bankcountry (#PCDATA)>
<!ELEMENT responsecode (#PCDATA)>
<!ELEMENT message (#PCDATA)>
<!ELEMENT customermessage (#PCDATA)>
<!ELEMENT recommendation (#PCDATA)>
<!ELEMENT approvalcode (#PCDATA)>
<!ELEMENT protocoltypename (#PCDATA)>
<!ELEMENT processingname (#PCDATA)>
<!ELEMENT operationdate (#PCDATA)>
<!ELEMENT authresult (#PCDATA)>
<!ELEMENT authrequired (#PCDATA)>
]>
<result firstcode='0' secondcode='0' count='1'>
<order>
<ordernumber>0001-01</ordernumber>
<billnumber>511111100000001</billnumber>
<testmode>1</testmode>
<ordercomment> </ordercomment>
<orderamount>100.00</orderamount>
<ordercurrency>RUB</ordercurrency>
<firstname>Test</firstname>
<lastname>Testov</lastname>
<middlename>Testovich</middlename>
<email>test@testpost.ru</email>
<orderdate>01.01.2011 11:23:13</orderdate>
<orderstate>Approved</orderstate>
<packetdate>01.01.2011 12:05</packetdate>
<signature></signature>
<checkvalue> </checkvalue>
<operation>
<billnumber>511111100000001.1</billnumber>
<operationtype>100</operationtype>
<operationstate>Success</operationstate>
<amount>100.00</amount>
<currency>RUB</currency>
<clientip>111.23.11.23</clientip>
<ipaddress>0.0.0.0</ipaddress>
<meantype_id>1</meantype_id>
<meantypename>VISA</meantypename>
<meansubtype>Classic</meansubtype>
<meannumber>411111****1111</meannumber>
<cardholder>TEST</cardholder>
<issuebank>New Bank</issuebank>
<bankcountry>Russia</bankcountry>
<responsecode>AS000</responsecode>
<message> </message>
<customermessage> </customermessage>
<recommendation></recommendation>
<approvalcode>F41412</approvalcode>
<protocoltypename>NET</protocoltypename>
<processingname>Name</processingname>
<operationdate>01.01.2011 11:24:13</ operationdate>
<authresult>Y</authresult>
<authrequired>1</authrequired>
</operation>
<operation>
<billnumber>511111100000001.2</billnumber>
<operationtype>200</operationtype>
<operationstate>Success</operationstate>
<amount>100.00</amount>
<currency>RUB</currency>
<clientip>111.23.11.23</clientip>
<ipaddress>0.0.0.0</ipaddress>

. 25 60

. 26 60

ASSIST

<meantype_id>1</meantype_id>
<meantypename>VISA</meantypename>
<meansubtype>Classic</meansubtype>
<meannumber>411111****1111</meannumber>
<cardholder>TEST</cardholder>
<issuebank>New Bank</issuebank>
<bankcountry>Russia</bankcountry>
<responsecode>AS000</responsecode>
<message> </message>
<customermessage> </customermessage>
<recommendation></recommendation>
<approvalcode></approvalcode>
<protocoltypename></protocoltypename>
<processingname>Name</processingname>
<operationdate>01.02.2011 19:24:13</operationdate>
<authresult></authresult>
<authrequired></authrequired>
</operation>
</order>
</result>

XML, ( ):
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<!DOCTYPE result [...]>
<result firstcode="7" secondcode="102" count="0"></result>

5.12 . 5.1, 5.2, 5.4, 5.8
, , .
<meannumber> 6 4
, *.
- SOAP :
https://test.paysecure.ru/orderresult/orderresult.wsdl .

3.5


. (
) HTTP POST
.
, URL ,
, .

, .
, -.
HTTPS
(support@assist.ru)
.
:

ASSIST

. 27 60

merchant_id

ordernumber

billnumber

testmode

ordercomment

orderamount

ordercurrency

amount

currency

rate

firstname

lastname

middlename

email

Email

clientip

IP-

ipaddress

IP-

meantype_id

ID

meantypename

meansubtype

meannumber

cardholder

issuebank

bankcountry

orderdate

(GMT)

orderstate

responsecode

message

customermessage

recommendation

approvalcode

protocoltypename

processingname

operationtype

operationdate

(GMT)

authresult

3DSecure (Y - , N - ,
A - Attempt, U )

authrequired

(1 , 0
, -1 , null
)

. 28 60

ASSIST

(GMT)

packetdate

1) MD5 -
2) PGP X,
signature

, BASE64
.
1) MD5 :
uppercase(md5(uppercase(md5(SALT) + md5()))), SALT
;
merchant_id, ordernumber, amount, currency, orderstate (
); + -
2) PGP -

checkvalue

xml .

( HTTP POST):
<?xml version="1.0" encoding="UTF-8"?>
<pushpaymentresult firstcode="0" secondcode="0">
<order>
<billnumber>value</billnumber>
<packetdate>value</packetdate>
</order>
</pushpaymentresult>

:
<?xml version="1.0" encoding="UTF-8"?>
<pushpaymentresult firstcode="value" secondcode="value">
</pushpaymentresult>

5.12 .
,
,
, .
! ,

, .
firstcode, secondcode .

. 29 60

ASSIST

4 -
:
, ( . 2.3.2),
.

4.1
,
, ,
( ).

-.
:
(on-line )
.
, .
,
,

.

.
, (
,

UCS,

-),

. ,
.
, ,
(
), .
(refund)

. refund
.

refund
refund

DCL,

JCB,

AMEX.
.

refund ,
.
refund UCS, -,
VISA MasterCard ,
( RVRReason=2).

. 30 60

ASSIST

.

.

UCS, -, VISA MasterCard ,
( RVRReason=1)
( RVRReason=3).

( , UCS) .

39 ( refund).

.
-.
HTTP POST SOAP ( UTF-8)
: https://test.paysecure.ru/cancel/cancel.cfm.

Billnumber

,

,

Merchant_ID

Login

, 20

Password

, 30

Amount

15 16

, 15
( ., ,)

CancelReason

1
2
3

Language

RU
EN

RU

ClientIP

15 , 4
.

Format

1 CSV
2 WDDX

Currency

IP ,

/.

. 31 60

ASSIST
3 XML
4 SOAP

Amount,

Currency

.
.

HTTP POST :
<FORM ACTION="https://test.paysecure.ru/cancel/cancel.cfm" method="POST">
<INPUT TYPE="hidden" NAME="BillNumber" VALUE="511111100000001">
<INPUT TYPE="hidden" NAME="Merchant_ID" VALUE=" Merchant_ID">
<INPUT TYPE="hidden" NAME="Login" VALUE=" ">
<INPUT TYPE="hidden" NAME="Password" VALUE=" ">
<INPUT TYPE="hidden" NAME="Amount" VALUE="">
<INPUT TYPE="hidden" NAME="Currency" VALUE="">
<INPUT TYPE="hidden" NAME="ClientIP" VALUE="IP-">
<INPUT TYPE="hidden" NAME="Language" VALUE=" ">
<INPUT TYPE="hidden" NAME="Format" VALUE=" ">
<INPUT TYPE="Submit"></FORM>

ordernumber

responsecode

recommendation

message

ordercomment

orderdate

(GMT)

amount

currency

meantypename

meannumber

lastname

firstname

middlename

issuebank

Email

Email

bankcountry

rate

approvalcode

meansubtype

cardholder

ipadress

IP-

protocolname

ASSIST

testmode

customermessage

orderstate

processingname

operationtype

billnumber

billnumber

orderamount

ordercurrency

packetdate

(GMT)

. 32 60

signature

XML:
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<!DOCTYPE result [
<!ATTLIST result
firstcode CDATA #REQUIRED
secondcode CDATA #REQUIRED
count CDATA #REQUIRED
>
<!ELEMENT result (orders?)>
<!ELEMENT orders (order)>
<!ELEMENT order (billnumber?, operationtype?, protocoltypename?, ordernumber?, orderdate?,
response_code?, orderstate?, message?, customermessage?, recommendation?,
ordercomment?, amountorg?, currencycodeorg?, amount?, currencycode?, meantype_id?,
meantypename?, meansubtype?, meannumber?, cardholder?, firstname?, lastname?,
middlename?, email?, ipaddress?, rate?, approvalcode?, issuebank?, bankcountry?,
processingname?, testmode?, packetdate?, signature?, checkvalue?)>
<!ELEMENT billnumber (#PCDATA)>
<!ELEMENT operationtype (#PCDATA)>
<!ELEMENT protocoltypename (#PCDATA)>
<!ELEMENT ordernumber (#PCDATA)>
<!ELEMENT orderdate (#PCDATA)>
<!ELEMENT response_code (#PCDATA)>
<!ELEMENT orderstate (#PCDATA)>
<!ELEMENT message (#PCDATA)>
<!ELEMENT customermessage (#PCDATA)>
<!ELEMENT recommendation (#PCDATA)>
<!ELEMENT ordercomment (#PCDATA)>
<!ELEMENT amountorg (#PCDATA)>
<!ELEMENT currencycodeorg (#PCDATA)>
<!ELEMENT amount (#PCDATA)>
<!ELEMENT currencycode (#PCDATA)>
<!ELEMENT meantype_id (#PCDATA)>
<!ELEMENT meantypename (#PCDATA)>
<!ELEMENT meansubtype (#PCDATA)>
<!ELEMENT meannumber (#PCDATA)>
<!ELEMENT cardholder (#PCDATA)>
<!ELEMENT firstname (#PCDATA)>
<!ELEMENT lastname (#PCDATA)>
<!ELEMENT middlename (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT ipaddress (#PCDATA)>
<!ELEMENT rate (#PCDATA)>
<!ELEMENT approvalcode (#PCDATA)>
<!ELEMENT issuebank (#PCDATA)>
<!ELEMENT bankcountry (#PCDATA)>
<!ELEMENT processingname (#PCDATA)>

ASSIST

. 33 60

<!ELEMENT testmode (#PCDATA)>


<!ELEMENT packetdate (#PCDATA)>
<!ELEMENT signature (#PCDATA)>
<!ELEMENT checkvalue (#PCDATA)>
]>
<result firstcode="0" secondcode="0" count="1">
<orders> <order>
<ordernumber> 0001-01 </ordernumber>
<responsecode> AS000 </responsecode>
<recommendation> </recommendation>
<message> . </message>
<ordercomment> </ordercomment>
<orderdate> 01.01.2011 10:51:53 </orderdate>
<amount> 100.00 </amount>
<currency> RUB </currency>
<meantypename>VISA</meantypename>
<meannumber>411111****1111</meannumber>
<lastname> Testov </lastname>
<firstname> Test </firstname>
<middlename> Testovich </middlename>
<issuebank> BANK </issuebank>
<email> test@testpost.ru </email>
<bankcountry> </bankcountry>
<rate> 1 </rate>
<approvalcode> F39530 </approvalcode>
<meansubtype> Corporate Purchasing Card </meansubtype>
<cardholder> TEST </cardholder>
<ipaddress> 10.23.23.23 </ipaddress>
<protocoltypename> </protocoltypename>
<testmode> 1 </testmode>
<customermessage> . </customermessage>
<orderstate> Canceled </orderstate>
<processingname> Name </processingname>
<operationtype> 300 </operationtype>
<billnumber>511111100000001.2</billnumber>
<orderamount> 100.00 </orderamount>
<ordercurrency> RUB </ordercurrency>
<packetdate> 01.01.2011 12:36:31 </packetdate>
<signature> </signature>
</order> </orders>
</result>

XML, ( ):
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<!DOCTYPE result [...]>
<result firstcode="7" secondcode="102" count="0"></result>

5.12 . 5.1, 5.2, 5.4, 5.8
, , .
<meannumber> 6 4
, *.
SOAP:
<?xml version='1.0' encoding='utf-8' standalone='no'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' SOAPENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
<SOAP-ENV:Body SOAP-ENV:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
<ASS-NS:MakeCancelResponse xmlns:ASS-NS='http://www.assist.ru/message/'>
<return xmlns:si='http://www.assist.ru/type/' xsi:type='si:SOAPStruct'>

. 34 60

ASSIST

<ordernumber xsi:type='xsd:string'>0001-01</ordernumber>
<responsecode xsi:type='xsd:string'>AS000</responsecode>
<recommendation xsi:type='xsd:string'></recommendation>
<message xsi:type='xsd:string'> .</message>
<ordercomment xsi:type='xsd:string'> </ordercomment>
<orderdate xsi:type='xsd:string'>01.01.2011 11:36:51</orderdate>
<amount xsi:type='xsd:string'>100.00</amount>
<currency xsi:type='xsd:string'>RUB</currency>
<meantypename xsi:type='xsd:string'>VISA</meantypename>
<meannumber xsi:type='xsd:string'>411111****1111</meannumber>
<lastname xsi:type='xsd:string'>Testov</lastname>
<firstname xsi:type='xsd:string'>Test</firstname>
<middlename xsi:type='xsd:string'>Testovich</middlename>
<issuebank xsi:type='xsd:string'>New Bank</issuebank>
<email xsi:type='xsd:string'>test@testpost.ru</email>
<bankcountry xsi:type='xsd:string'></bankcountry>
<rate xsi:type='xsd:string'>1</rate>
<approvalcode xsi:type='xsd:string'>F42695</approvalcode>
<meansubtype xsi:type='xsd:string'>Classic</meansubtype>
<cardholder xsi:type='xsd:string'>TEST</cardholder>
<ipaddress xsi:type='xsd:string'>111.23.23.23</ipaddress>
<protocoltypename xsi:type='xsd:string'></protocoltypename>
<testmode xsi:type='xsd:string'>1</testmode>
<customermessage xsi:type='xsd:string'> .</customermessage>
<orderstate xsi:type='xsd:string'>Canceled</orderstate>
<processingname xsi:type='xsd:string'>Name</processingname>
<operationtype xsi:type='xsd:string'>300</operationtype>
<billnumber xsi:type='xsd:string'>511111100000001.2</billnumber>
<orderamount xsi:type='xsd:string'>100.00</orderamount>
<ordercurrency xsi:type='xsd:string'>RUB</ordercurrency>
<packetdate xsi:type='xsd:string'>05.01.2011 12:42:57</packetdate>
<signature> </signature>
</return>
</ASS-NS:MakeCancelResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

:
<?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/1999/XMLSchema">
- <SOAP-ENV:Body>
- <SOAP-ENV:Fault>
<faultcode> </faultcode>
<faultstring> </faultstring>
<detail />
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

5.12 .
(on-line , (refund),
, )
( ), , ,
.

. 35 60

ASSIST

4.2

-.

HTTP POST SOAP ( UTF-8).
URL :
https://test.paysecure.ru/resultbydate/resultbydate.cfm.
-
, . ,
, , ,
.
( 3 ).
, , ,

. , ,
, (GMT/UTC).
, ,
,
.
! ,
, , , 10 .

Merchant_ID

Login

20

Password

30

TestMode

EN

.

SOAP,
POST

1
Language

RU
EN

Format

MeanType_ID

1
2
3
4

CSV
WDDX
XML
SOAP

1 VISA
2 MC
3 DCL
4 JCB
5 AMEX
30 WebMoney
32 YandexMoney

. 36 60

ASSIST
36 QIWI
39 QIWIBeeline
40 QIWIMts
41 - QIWIMegafon
Operationstate

N ,
P
,


.
.

.

.


(GMT)


(GMT)

S ,
F

T

Operationtype

A
C

StartDay

01-31

StartMonth

01-12

StartYear

YYYY

StartHour

00-23

StartMin

00-59

01-31

01-12

YYYY

00-23

00-59

"0" - browser
"1" - file
"2" - ZIP

EndDay
EndMonth
EndYear
EndHour
EndMin
ZipFlag

,
, .
,
VISA.
HTTP POST ,
VISA 07:00 11:00 (GMT)
01.03.2011 XML:
<FORM ACTION="https://test.paysecure.ru/resultbydate/resultbydate.cfm"
method="POST">
<INPUT TYPE="hidden" NAME="Merchant_ID" VALUE=" Merchant_ID">
<INPUT TYPE="hidden" NAME="Login" VALUE=" ">
<INPUT TYPE="hidden" NAME="Password" VALUE=" ">
<INPUT TYPE="hidden" NAME="TestMode" VALUE="1">
<INPUT TYPE="hidden" NAME="Language" VALUE="EN">
<INPUT TYPE="hidden" NAME="MeanType_ID" VALUE="1">
<INPUT TYPE="hidden" NAME="Operationstate" VALUE="S">
<INPUT TYPE="hidden" NAME="Operation type" VALUE="A">
<INPUT TYPE="hidden" NAME="StartDay" VALUE="01">
<INPUT TYPE="hidden" NAME="StartMonth" VALUE="03">
<INPUT TYPE="hidden" NAME="StartYear" VALUE="2011">
<INPUT TYPE="hidden" NAME="StartHour" VALUE="07">

. 37 60

ASSIST

<INPUT
<INPUT
<INPUT
<INPUT
<INPUT
<INPUT
<INPUT
<INPUT

TYPE="hidden" NAME="StartMin" VALUE="00">


TYPE="hidden" NAME="EndDay" VALUE="01">
TYPE="hidden" NAME="EndMonth" VALUE="03">
TYPE="hidden" NAME="EndYear" VALUE="2011">
TYPE="hidden" NAME="EndHour" VALUE="11">
TYPE="hidden" NAME="EndMin" VALUE="00">
TYPE="hidden" NAME="Format" VALUE="3">
TYPE="Submit"></FORM>

ordernumber

billnumber

billnumber

testmode

ordercomment

orderamount

ordercurrency

amount

currency

rate

lastname

firstname

middlename

email

Email

clientip

IP-

ipadress

IP-

meantype_id

ID

meantypename

meansubtype

meannumber

cardholder

issuebank

bankcountry

orderdate

(GMT)

orderstate

responsecode

message

customermessage

recommendation

approvalcode

protocolname

ASSIST

. 38 60

processingname

operationtype

operationdate

(GMT)

authresult

3DSecure (Y - , N - ,
A - Attempt, U )

authrequired

(1 , 0
, -1 , null
)

packetdate

(GMT)

checkvalue

uppercase(md5(uppercase(md5(SALT) + md5()))), SALT


;
merchant_id, ordernumber, orderamount, ordercurrency,
orderstate ( ), + -

XML
<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<!DOCTYPE result [
<!ATTLIST result
firstcode CDATA #REQUIRED
secondcode CDATA #REQUIRED
count CDATA #REQUIRED>
<!ELEMENT result (payment*)>
<!ELEMENT payment
(ordernumber?,billnumber?,testmode?,ordercomment?,orderamount?,ordercurrency?,amount?,c
urrency?,rate?,firstname?,lastname?,middlename?,email?,clientip?,ipaddress?,meantype_id?,me
antypename?,meansubtype?,meannumber?,cardholder?,issuebank?,bankcountry?,orderdate?,or
derstate?,responsecode?,message?,customermessage?,recommendation?,approvalcode?,protoco
ltypename?,processingname?,operationtype?,operationdate?,authresult?,authrequired?,packetda
te?,signature?,checkvalue?)>
<!ELEMENT ordernumber (#PCDATA)>
<!ELEMENT billnumber (#PCDATA)>
<!ELEMENT testmode (#PCDATA)>
<!ELEMENT ordercomment (#PCDATA)>
<!ELEMENT orderamount (#PCDATA)>
<!ELEMENT ordercurrency (#PCDATA)>
<!ELEMENT amount (#PCDATA)>
<!ELEMENT currency (#PCDATA)>
<!ELEMENT rate (#PCDATA)>
<!ELEMENT firstname (#PCDATA)>
<!ELEMENT lastname (#PCDATA)>
<!ELEMENT middlename (#PCDATA)>
<!ELEMENT email (#PCDATA)>
<!ELEMENT clientip (#PCDATA)>
<!ELEMENT ipaddress (#PCDATA)>
<!ELEMENT meantype_id (#PCDATA)>
<!ELEMENT meantypename (#PCDATA)>
<!ELEMENT meansubtype (#PCDATA)>
<!ELEMENT meannumber (#PCDATA)>
<!ELEMENT cardholder (#PCDATA)>
<!ELEMENT issuebank (#PCDATA)>
<!ELEMENT bankcountry (#PCDATA)>
<!ELEMENT orderdate (#PCDATA)>
<!ELEMENT orderstate (#PCDATA)>
<!ELEMENT responsecode (#PCDATA)>
<!ELEMENT message (#PCDATA)>
<!ELEMENT customermessage (#PCDATA)>
<!ELEMENT recommendation (#PCDATA)>
<!ELEMENT approvalcode (#PCDATA)>
<!ELEMENT protocoltypename (#PCDATA)>
<!ELEMENT processingname (#PCDATA)>

ASSIST

<!ELEMENT
<!ELEMENT
<!ELEMENT
<!ELEMENT
<!ELEMENT
<!ELEMENT
<!ELEMENT
]>

. 39 60

operationtype (#PCDATA)>
operationdate (#PCDATA)>
authresult (#PCDATA)>
authrequired (#PCDATA)>
packetdate (#PCDATA)>
signature (#PCDATA)>
checkvalue (#PCDATA)>

<result firstcode='0' secondcode='0' count='17'>


<payment>
<ordernumber>0001-01</ordernumber>
<billnumber>511111100000001.1</billnumber>
<testmode>1</testmode>
<ordercomment> </ordercomment>
<orderamount>100.00</orderamount>
<ordercurrency>RUB</ordercurrency>
<amount>100.00</amount>
<currency>RUB</currency>
<rate>1</rate>
<firstname>Test</firstname>
<lastname>Testov</lastname>
<middlename>Testovich</middlename>
<email>test@testpost.ru</email>
<clientip>111.23.11.23</clientip>
<ipaddress>0.0.0.0</ipaddress>
<meantype_id>1</meantype_id>
<meantypename>VISA</meantypename>
<meansubtype>Corporate Purchasing Card</meansubtype>
<meannumber>411111****1111</meannumber>
<cardholder>TEST</cardholder>
<issuebank>BANK </issuebank>
<bankcountry>Russia</bankcountry>
<orderdate>01.03.2011 08:39:25</orderdate>
<orderstate>Approved</orderstate>
<responsecode>AS000</responsecode>
<message>Success </message>
<customermessage>Success </customermessage>
<recommendation></recommendation>
<approvalcode>F31720</approvalcode>
<protocoltypename>NET</protocoltypename>
<processingname>Name</processingname>
<operationtype>100</operationtype>
<operationtdate>01.02.2012 06:39:42</operationdate>
<authresult/>
<authrequired>0</authrequired>
<packetdate>01.03.2011 10:55:51</packetdate>
<checkvalue></checkvalue>
</payment>
<payment>

</payment>
</result>

CSV:
"ordernumber";"billnumber";"testmode";"ordercomment";"orderamount";"ordercurrency";"
amount";"currency";"rate";"firstname";"lastname";"middlename";"email";"clientip";"ipaddr
ess";"meantype_id";"meantypename";"meansubtype";"meannumber";"cardholder";"issueb
ank";"bankcountry";"orderdate";"orderstate";"responsecode";"message";"customermessag
e";"recommendation";"approvalcode";"protocoltypename";"processingname";"operationtyp
e";";"operationdate";"authresult";"authrequired";"packetdate";"checkvalue";
"001-1";"500000000000000.1";"0";" ";"70.00";"USD";"1
975.48";"RUB";"28.2212";"Testov";"";"S.";"test@test.ru";"10.20.10.00";"0.0.0.0";"1";"
VISA";"Classic";"411111****1111";"TEST";"New Bank";"";"18.04.2011

. 40 60

ASSIST

07:51:42";"";"AS000";" . ";" .
";"";"X28577";"NET";"Fake";"100";"01.02.2012 06:39:42";"";"0";"18.04.2011
12:27:32";"5189407747A5435E9E7A0C06A7BC18CD";

XML, ( ):
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<!DOCTYPE result [...]>
<result firstcode="7" secondcode="102" count="0"></result>

5.12 . 5.1, 5.2, 5.4, 5.8
, , .
<meannumber> 6 4
, *.
- SOAP :
https://test.paysecure.ru/resultbydate/resultbydate.wsdl .

4.3

. , UCS.

(. 2.1) RecurringIndicator=1
, ,
( ) .
, ,
( )
.

HTTP POST SOAP ( UTF-8).
URL :
https://test.paysecure.ru/recurrent/rp.cfm.

BillNumber

15 16

BillNumber

128

Merchant_ID

Login

20

Password

30

Amount

Currency

OrderNumber

, 15
( .,
,)

. 41 60

ASSIST

TestMode

0
,
1

OrderComment

Language

Format

256

(
)

RU
EN

EN

1
2
3
4

1 POST
,

CSV
WDDX
XML
- SOAP

4 SOAP

HTTP POST:
<FORM ACTION="https://test.paysecure.ru/recurrent/rp.cfm" METHOD="POST">
<INPUT TYPE="HIDDEN" NAME="BillNumber" VALUE="511111100000001.1">
<INPUT TYPE="HIDDEN" NAME="OrderNumber" VALUE="A1_R1">
<INPUT TYPE="HIDDEN" NAME="Merchant_ID" VALUE=" Merchant_ID">
<INPUT TYPE="HIDDEN" NAME="Login" VALUE=" ">
<INPUT TYPE="HIDDEN" NAME="Password" VALUE=" ">
<INPUT TYPE="HIDDEN" NAME="Amount" VALUE="20">
<INPUT TYPE="HIDDEN" NAME="Currency" VALUE="RUB">
<INPUT TYPE="HIDDEN" NAME="Format" VALUE="3">
<INPUT TYPE="HIDDEN" NAME="Language" VALUE="EN">
<INPUT TYPE="SUBMIT" NAME="Submit" VALUE="">
</FORM>


billnumber

ordernumber

testmode

ordercomment

orderamount

ordercurrency

firstname

lastname

middlename

Email

Email

orderdate

(GMT)

orderstate

packetdate

(GMT)

signature
checkvalue

uppercase(md5(uppercase(md5(SALT) + md5()))), SALT


;
merchant_id, ordernumber, orderamount, ordercurrency,
orderstate ( ), + -

ASSIST

. 42 60


billnumber

billnumber

operationtype

operationstate

amount

currency

ipadress

IP-

clientip

IP-

meantype_id

meansubtype

meannumber

cardholder

issuebank

bankcountry

responsecode

message

customermessage

recommendation

approvalcode

protocolname

processingname

.
<meannumber> 6 4 ,
*.

. 43 60

ASSIST

5.


- .

( ),
.
.
- ,
( ) .

-,

, .
.

.

.
,
.
,
.
Billnumber , .
Billnumber : 500000000000000.1, 15
16 , ,
, .

. 44 60

ASSIST

5.1 orderstate
orderstate

In Process

Delayed

Approved

PartialApproved


( )

PartialDelayed

Canceled

PartialCanceled

Declined

Timeout

5.2 operationtype

100

Approve

200

Charge

300

PaymentCancel

5.3 operationstate
operationstate

New

In Process

Success

Failure

TimeOut

5.4 response_code

AS000

AS100

AS101

AS102

AS104

AS105

AS107

AS108

ASSIST

AS109

AS110

. 3D-Secure

AS200

AS300

AS400

AS998

. ASSIST

5.5 meantypename

VISA

Visa

MC

MasterCard

DCL

Diners Club

JCB

Japan Credit Bureau

AMEX

American Express

10

Discover

Discover

30

WebMoney

WebMoney

32

YandexMoney

YandexMoney

36

QIWI

QIWI

5.6 meansubtype

VISA

Corporate/BusinessCard Card

VISA

Standart

VISA

Electronic

VISA

Corporate Fleet Card

VISA

Gold

VISA

Corporate Card

VISA

Corporate Purchasing Card

VISA

Standart (2)

10

VISA

Word Signia Card

11

VISA

Gold Debit Card

12

VISA

Maestro

13

VISA

MDO

14

VISA

MDP

15

VISA

Debit Card

16

VISA

Platinum Card

17

VISA

MPP

18

VISA

Private Label Generic Service

19

VISA

Proprietary

20

VISA

Cirrus

. 45 60

ASSIST

21

VISA

eurocheque Pictogram

22

MC

ATM

23

MC

Visa Busines

24

MC

Classic

25

MC

Commerce

26

MC

Electron

27

MC

Visa travelMoney Card

28

MC

Visa Infinity Card

29

MC

Platinum

30

MC

Visa signature Card

31

MC

COPAC

32

MC

Private Label Card

33

MC

MasterCard

34

MC

Visa Gold

35

MC

Proprietary Card

36

MC

Corporate T&E Card

37

MC

Purchasing Card

38

MC

Travel Voucher

39

MC

Reserved

104

VISA

EUROCHEQUE/CIRRUS

105

VISA

MASTERCARD

106

VISA

EUROCARD/MASTERCARD

5.7

RU

EN

5.8 currency

RUR

USD

EUR

BYR

AUD

AZN

BGN

BRL

CAD

CHF

CNY

. 46 60

ASSIST

CZK

DKK

EEK

GBP

HUF

INR

JPY

KGS

KRW

KZT

LTL

LVL

MDL

NOK

PLN

RON

SEK

SGD

TJS

TMT

TRY

UAH

UZS

ZAR

5.9 country (ISO 3166)

AUS

AUT

AZE

ALB

DZA

ASM

AGO

AND

ATG

ANT

ARG

ARM

ABW

. 47 60

ASSIST

AFG

BHS

BGD

BRB

BHR

BLR

BLZ

BEL

BEN

BMU

BGR

BOL

BIH

BWA

BRA

BRN

BFA

BDI

BTN

VUT

VAT

GBR

HUN

VEN

VGB

TMP

VNM

GAB

HTI

GUY

GMB

GHA

GLP

GTM

GUF

GIN

GNB

DEU

. 48 60

ASSIST

GIB

HND

HKG

GRD

GRL

GRC

GEO

GUM

DNK

DJI

DMA

DOM

EGY

ZAR

ZMB

ESH

ZWE

ISR

IND

IDN

JOR

IRQ

IRN

IRL

ISL

ESP

ITA

YMD

KAZ

CYM

KHM

CMR

CAN

QAT

KEN

CYP

CHN

CCK

. 49 60

ASSIST

COL

COM

COG

PRK

CRI

CUB

KWT

KGZ

LAO

LVA

LSO

LBR

LBN

LBY

LTU

LIE

LUX

MUS

MRT

MDG

MAC

MKD

MYS

MLI

MDV

MLT

MAR

MTQ

MHL

MEX

FSM

MOZ

MDA

MCO

MNG

MSR

MMR

( )

NAM

. 50 60

ASSIST

NPN

NER

NGA

NLD

NIC

NZL

NCL

NOR

ARE

OMN

PAK

PLW

PSE

PAN

PNG

PRY

PER

PYF

POL

PRT

PRI

RUS

RWA

ROM

SLV

WSM

SMR

SAU

SWZ

SYC

SEN

LCA

SGP

SYR

SVK

SVN

SLB

SOM

. 51 60

ASSIST

SDN

SUR

USA

SLE

TJK

THA

TWN

TZA

TGO

TON

TTO

TUN

TKM

TUR

UGA

UZB

UKR

URY

FJI

PHL

FIN

FLK

FRA

HRV

CAF

TCD

CZE

CSK

CHL

CHE

SWE

LKA

ECU

GNQ

EST

ETH

ZAF

YUG

. 52 60

ASSIST

KOR

JAM

JPN

5.10 state

10

11

12

13

14

()

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

. 53 60

ASSIST

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49

50

51

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71

72

73

74

75

. 54 60

ASSIST

76

77

78

. -

79

80

81

82

83

84

(-)

85

86

87

88

89

5.11 state

AL

Alabama

AK

Alaska

AB

Alberta

AZ

Arizona

AR

Arkansas

BC

British Columbia

CA

California

CO

Colorado

CT

Connecticut

DE

Delaware

DC

District of Columbia

FL

Florida

GA

Georgia

HI

Hawaii

ID

Idaho

IL

Illinois

IN

Indiana

IA

Iowa

KS

Kansas

KY

Kentucky

LB

Labrador

LA

Louisiana

ME

Maine

. 55 60

ASSIST

MB

Manitoba

MD

Maryland

MA

Massachusetts

MI

Michigan

MN

Minnesota

MS

Mississippi

MO

Missouri

MT

Montana

NE

Nebraska

NV

Nevada

NB

New Brunswick

NH

New Hampshire

NJ

New Jersey

NM

New Mexico

NY

New York

NF

Newfoundland

NC

North Carolina

ND

North Dakota

NT

Northwest Territories

NS

Nova Scotia

OH

Ohio

OK

Oklahoma

ON

Ontario

OR

Oregon

PA

Pennsylvania

PE

Prince Edward Island

PR

Puerto Rico

PQ

Quebec

RI

Rhode Island

SK

Saskatchewan

SC

South Carolina

SD

South Dakota

TN

Tennessee

TX

Texas

UT

Utah

VT

Vermont

VA

Virginia

WA

Washington

WV

West Virginia

WI

Wisconsin

WY

Wyoming

. 56 60

ASSIST

YT

Yukon Territory

5.12

10

11

12

13

14

15

16

17

18

19

20

3D-Secure

21

100

MERCHANT_ID (SHOP_ID, SHOP_IDP)

101

LOGIN

102

PASSWORD

103

FORMAT

. 57 60

ASSIST

104

DATE

105

CURRENCY

106

MEANNUMBER

107

ORDERNUMBER (SHOPORDERNUMBER, ORDER_IDP)

108

AMOUNT (SUBTOTAL_P)

109

DELAY

110

COMMENT

111

MEANTYPE

112

EXPIREMONTH

113

EXPIREYEAR

114

CARDHOLDER

115

CSC2

116

CLIENTIP

117

LASTNAME

118

FIRSTNAME

119

MIDDLENAME

120

EMAIL

121

ADDRESS

122

PHONE

123

CITY

124

STATE

125

ZIP

126

LIMITTYPE

127

LANGUAGE

128

COUNTRY

129

STARTDAY / STARTMONTH / STARTYEAR

130

ENDDAY / ENDMONTH / ENDYEAR

131

SUCCESS

132

ZIPFLAG

133

HEADER

134

HEADER1

135

DELIMITER

136

OPENDELIMITER

137

CLOSEDELIMITER

138

ROWDELIMITER

139

FIELDS

140

SSL

141

LOGIN / PASSWORD

142

EXPIREMONTH / EXPIREYEAR

143

BILLNUMBER

144

PROTECTCODE

145

OPTYPE

146

OPSTATE

. 58 60

ASSIST

147

RPSERIES

148

RPNUMBER

149

ASSISTID

150

PIN

153

TICKET_NUMBER, PNR

154

URL

155

TRANSACT_ID

164

ORDERSTATE

167

Currency RATE

173

IP-ADDRESS

200

201

202

203

204

205

206

207

208

209

210

211

212

TestMode

213

PaymentType

214

Template

215

SOAP PACKET

216

217

218

221

225

300

301

(refund)

302

(deposit)

303

ACCOUNT_ID

305

306

307

308

400

Directory Server

402

3D-Secure

. 59 60

. 60 60

ASSIST

5.13

Expire
Date

CSC2

VISA

4111111111111111

TEST

12/2020

123

Success

VISA

4627100101654724

TEST

12/2020

123

Success

VISA

4486441729154030

TEST

12/2020

123

VISA

4024007123874108

TEST

12/2020

123

Insufficient funds

VISA

4750657776370372

MC

5467929858074128

TEST
TEST

12/2020
12/2020

123
123

Transaction not permitted to CH


Success

MC

5529263272356119

TEST

12/2020

123

Success

MC

5538300838605560

TEST

12/2020

123

TEST

12/2020

123

TEST

12/2020

123

TEST

12/2020

123

TEST

12/2020

123

TEST

12/2020

123

TEST

12/2020

123

TEST

12/2020

123

TEST

12/2020

123

MC
MC

5569191777864116
5124585563456201

DCL

30000000000004

DCL

38000000000006

DCL

30569309025904

DCL

38520000023237

JCB

3530111333300000

Pick up. Stolen card

Pick up. Stolen card


Insufficient funds
Transaction not permitted to CH
Success
Pick up. Stolen card
Insufficient funds
Transaction not permitted to CH
Success

JCB

3566002020360505

Pick up. Stolen card


Success

AMEX

375700000000002

TEST

12/2020

1234

AMEX

375118430910825

TEST

12/2020

1234

AMEX

375118434896517

TEST

12/2020

1234

Pick up. Stolen card

AMEX

375118435530560

TEST

12/2020

1234

Insufficient funds

AMEX

375117436823644

TEST

12/2020

1234

Transaction not permitted to CH

Success