POST api/PayNow/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
Required |
Body Parameters
PayNowRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| SiteId | integer |
None. |
|
| Amount | decimal number |
None. |
|
| UpdateCOF | boolean |
None. |
|
| CCInfo | PayNowCardTokenRequest |
None. |
|
| Channel | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"siteId": 1,
"amount": 2.0,
"updateCOF": true,
"ccInfo": {
"ccNumber": "sample string 1",
"cardExpireDate": "sample string 2",
"cvV2": "sample string 3",
"cardType": "sample string 4",
"holderName": "sample string 5",
"holderAddress": "sample string 6",
"holderPostalCode": "sample string 7"
},
"channel": "sample string 4"
}
application/xml, text/xml
Sample:
<PayNowRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CSI_REST_Interface">
<Amount>2</Amount>
<CCInfo>
<CCNumber>sample string 1</CCNumber>
<CVV2>sample string 3</CVV2>
<CardExpireDate>sample string 2</CardExpireDate>
<CardType>sample string 4</CardType>
<HolderAddress>sample string 6</HolderAddress>
<HolderName>sample string 5</HolderName>
<HolderPostalCode>sample string 7</HolderPostalCode>
</CCInfo>
<Channel>sample string 4</Channel>
<SiteId>1</SiteId>
<UpdateCOF>true</UpdateCOF>
</PayNowRequest>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |