POST api/VPOS/InitPayment

Make Payment

Request Information

URI Parameters

None.

Body Parameters

MakePaymentRequest model

InitPaymentRequest
NameDescriptionTypeAdditional information
ClientID

string

None.

Amount

decimal number

None.

OrderID

integer

None.

BackURL

string

None.

Username

string

None.

Password

string

None.

Description

string

None.

Currency

string

None.

CardHolderID

string

None.

Opaque

string

None.

Timeout

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "ClientID": "sample string 1",
  "Amount": 2.0,
  "OrderID": 3,
  "BackURL": "sample string 4",
  "Username": "sample string 5",
  "Password": "sample string 6",
  "Description": "sample string 7",
  "Currency": "sample string 8",
  "CardHolderID": "sample string 9",
  "Opaque": "sample string 10",
  "Timeout": 11
}

application/xml, text/xml

Sample:
<InitPaymentRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ClientID>sample string 1</ClientID>
  <Amount>2</Amount>
  <OrderID>3</OrderID>
  <BackURL>sample string 4</BackURL>
  <Username>sample string 5</Username>
  <Password>sample string 6</Password>
  <Description>sample string 7</Description>
  <Currency>sample string 8</Currency>
  <CardHolderID>sample string 9</CardHolderID>
  <Opaque>sample string 10</Opaque>
  <Timeout>11</Timeout>
</InitPaymentRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'InitPaymentRequest'.

Response Information

Resource Description

MakePaymentResponse model

InitPaymentResponse
NameDescriptionTypeAdditional information
PaymentID

string

None.

ResponseCode

integer

None.

ResponseMessage

string

None.

Response Formats

application/json, text/json

Sample:
{
  "PaymentID": "sample string 1",
  "ResponseCode": 2,
  "ResponseMessage": "sample string 3"
}

application/xml, text/xml

Sample:
<InitPaymentResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <PaymentID>sample string 1</PaymentID>
  <ResponseCode>2</ResponseCode>
  <ResponseMessage>sample string 3</ResponseMessage>
</InitPaymentResponse>