POST api/b2c/cardlink/hash
Send a DigestHashRequest to receive the hash in string form
Request Information
URI Parameters
None.
Body Parameters
The DigestHashRequestDTO.
Cyberlogic.eTourism.Mappings.Web.Dto.Cardlink.DigestHashRequestDTOName | Description | Type | Additional information |
---|---|---|---|
MerchantId | string |
None. |
|
LanguageCode | string |
None. |
|
OrderId | string |
None. |
|
OrderDescription | string |
None. |
|
OrderAmount | string |
None. |
|
Currency | string |
None. |
|
PayerEmail | string |
None. |
|
PayMethod | string |
None. |
|
ConfirmUrl | string |
None. |
|
CancelUrl | string |
None. |
|
Variable1 | string |
None. |
|
Variable2 | string |
None. |
|
Variable3 | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "MerchantId": "sample string 1", "LanguageCode": "sample string 2", "OrderId": "sample string 3", "OrderDescription": "sample string 4", "OrderAmount": "sample string 5", "Currency": "sample string 6", "PayerEmail": "sample string 7", "PayMethod": "sample string 8", "ConfirmUrl": "sample string 9", "CancelUrl": "sample string 10", "Variable1": "sample string 11", "Variable2": "sample string 12", "Variable3": "sample string 13" }
text/html
Sample:
{"MerchantId":"sample string 1","LanguageCode":"sample string 2","OrderId":"sample string 3","OrderDescription":"sample string 4","OrderAmount":"sample string 5","Currency":"sample string 6","PayerEmail":"sample string 7","PayMethod":"sample string 8","ConfirmUrl":"sample string 9","CancelUrl":"sample string 10","Variable1":"sample string 11","Variable2":"sample string 12","Variable3":"sample string 13"}
application/xml, text/xml
Sample:
<DigestHashRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Web.Dto.Cardlink"> <CancelUrl>sample string 10</CancelUrl> <ConfirmUrl>sample string 9</ConfirmUrl> <Currency>sample string 6</Currency> <LanguageCode>sample string 2</LanguageCode> <MerchantId>sample string 1</MerchantId> <OrderAmount>sample string 5</OrderAmount> <OrderDescription>sample string 4</OrderDescription> <OrderId>sample string 3</OrderId> <PayMethod>sample string 8</PayMethod> <PayerEmail>sample string 7</PayerEmail> <Variable1>sample string 11</Variable1> <Variable2>sample string 12</Variable2> <Variable3>sample string 13</Variable3> </DigestHashRequestDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
A string with the encrypted hash.
stringResponse Formats
application/json, text/json, text/html
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>