Register
https://{Environment}.payture.com/vwapi/RegisterThe Register command registers a new Customer in the Payture payment system. To use eWallet API functionality, each Customer must be registered in the Payture system.
The Payture system also lets you register a Customer automatically upon successfully adding a card, instead of using a separate Register command. To enable this option, please contact Payture support.
Request
curl https://sandbox3.payture.com/vwapi/Register \
-X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d VWID=Merchant \
--data-urlencode "DATA= \
VWUserLgn=123@ya.ru; \
VWUserPsw=2645363; \
PhoneNumber=79156783333" \Parameter names in requests are case-sensitive
| Parameter | Description | Format |
|---|---|---|
| VWID | Payment terminal name Provided with the test/production access credentials | String Mandatory |
| DATA | Customer 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
| Parameter | Description | Format |
|---|---|---|
| VWUserLgn | Customer identifier in the Payture system Set by the Merchant, for example, an email address | String [1..50] Mandatory |
| VWUserPsw | Additional access parameter for the Customer's private information (Customer password) Set by the Merchant | String [1..50] Mandatory |
| PhoneNumber | Customer phone number Digits only, no separators. Format: [country code][operator code][subscriber number] | String Optional |
| Customer email Can be passed if it is not used as VWUserLgn | String [1..50] Optional |
Example of the DATA parameter (decoded):
VWUserLgn=123@ya.ru;
VWUserPsw=2645363;
PhoneNumber=79156783333Response
An XML string with the Register element
Response examples
<Register Success="True" VWUserLgn="123@ya.ru"/>| Parameter | Description | Format |
|---|---|---|
| Success | Operation success flag. Possible values:True — the operation succeededFalse — the operation failed | String Mandatory |
| VWUserLgn | Customer identifier in the Payture system Matches the value passed in the request | String [1..50] Mandatory |
| ErrCode | Error code. See error codes Returned if “Success=False” | String Optional |
