POST api/cardService/v1/payments/takeGenericPayment
Request Information
URI Parameters
None.
Body Parameters
GenericPaymentCardRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| CardFundSource | CardFundSourceModel |
Required |
|
| Amount | decimal number |
Required |
|
| Currency | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"CardFundSource": {
"CardName": "sample string 1",
"Pan": "sample string 2",
"Cvv": "sample string 3",
"ExpiryMonth": "sample string 4",
"ExpiryYear": "sample string 5",
"NameOnCard": "sample string 6",
"BillingPostalCode": "sample string 7",
"BillingAddress": "sample string 8",
"BillingTownCity": "sample string 9"
},
"Amount": 1.0,
"Currency": "sample string 2"
}
application/xml, text/xml
Sample:
<GenericPaymentCardRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels">
<Amount>1</Amount>
<CardFundSource>
<BillingAddress>sample string 8</BillingAddress>
<BillingPostalCode>sample string 7</BillingPostalCode>
<BillingTownCity>sample string 9</BillingTownCity>
<CardName>sample string 1</CardName>
<Cvv>sample string 3</Cvv>
<ExpiryMonth>sample string 4</ExpiryMonth>
<ExpiryYear>sample string 5</ExpiryYear>
<NameOnCard>sample string 6</NameOnCard>
<Pan>sample string 2</Pan>
</CardFundSource>
<Currency>sample string 2</Currency>
</GenericPaymentCardRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
GenericPaymentCardResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| PaymentReference | string |
None. |
|
| IsSuccess | boolean |
None. |
|
| ErrorCodes | Collection of string |
Required |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"PaymentReference": "sample string 1",
"IsSuccess": true,
"ErrorCodes": [
"sample string 1",
"sample string 2"
],
"Message": "sample string 3"
}
application/xml, text/xml
Sample:
<GenericPaymentCardResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Qcs.WebApi.WebApiModels">
<ErrorCodes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ErrorCodes>
<IsSuccess>false</IsSuccess>
<Message>sample string 3</Message>
<IsSuccess>true</IsSuccess>
<PaymentReference>sample string 1</PaymentReference>
</GenericPaymentCardResponseModel>