RU

Activate

https://{Environment}.payture.com/vwapi/Activate

The Activate command activates a card previously registered in the Payture system and awaiting activation. Use it when the card is verified with the add-card flow that places a hold on a small amount.

The Activate request must specify the amount held on the card when it was added via Add. If the Customer enters the held amount correctly, the card is activated and the held funds are released. If the amount is entered incorrectly, the funds are released by a separate request.

Request

curl https://sandbox3.payture.com/vwapi/Activate \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d VWID=Merchant \
--data-urlencode "DATA= \
VWUserLgn=123@ya.ru; \
VWUserPsw=2645363; \
CardId=00a94d92-1d84-44be-fa32-1c9591443347; \
Amount=101" \
Get link

Parameter names in requests are case-sensitive

ParameterDescriptionFormat
VWIDPayment terminal name
Provided with the test/production access credentials
String
Mandatory
DATACard parameters
A URL-encoded string containing key-value pairs separated by “;” (semicolon). Keys and values are separated by “=” (equals sign)
String
Mandatory

DATA parameter keys

ParameterDescriptionFormat
VWUserLgnCustomer identifier in the Payture systemString [1..50]
Mandatory
VWUserPswAdditional access parameter for the Customer's private information (Customer password)String [1..50]
Mandatory
CardIdIdentifier, in the Payture system, of the card being activatedString [36]
Mandatory
AmountAmount held on the Customer's card, in kopecks (1/100 of a ruble)Integer
Mandatory
AmountAmount held on the Customer's card, in kopecks (1/100 of a ruble)Integer
Mandatory

Example of the DATA parameter (decoded):

VWUserLgn=123@ya.ru;
VWUserPsw=2645363;
CardId=00a94d92-1d84-44be-fa32-1c9591443347;
Amount=12480

Response

An XML string with the Activate element

Response examples

<Activate Success="True" VWUserLgn="123@ya.ru" CardId="00a94d92-1d84-44be-fa32-1c9591443347"/>
ParameterDescriptionFormat
SuccessOperation success flag. Possible values:
True — the operation succeeded
False — the operation failed
String
Mandatory
VWUserLgnCustomer identifier in the Payture system
Matches the value passed in the request
String [1..50]
Mandatory
CardIdCard identifier in the Payture system
Returned if “Success=True”
String [36]
Optional
ErrCodeError code. See error codes
Returned if “Success=False”
String
Optional