POST v{version}/{lang}/CheckoutByCreditCardToken?paymentProvider={paymentProvider}¤cy={currency}&wp={wp}
Checkout. Complete checkout for a reserved booking. Request must include a cookie containing a previously reserved booking. Completes payment authorization for supplied CC token.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| lang | string |
Required |
|
| paymentProvider | PaymentProvider |
Required |
|
| currency | string |
Default value is ISK |
|
| wp | string |
Default value is GG |
|
| version |
The requested API version |
string |
Required Default value is 1.0 |
Body Parameters
CheckoutByCreditCardTokenRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Token | string |
Required |
|
| PARes | string |
None. |
|
| EmailOptIn | boolean |
None. |
|
| DepositPayment | boolean |
None. |
|
| PaymentProvider | PaymentProvider |
None. |
Request Formats
application/json, text/json
Sample:
{
"Token": "sample string 1",
"PARes": "sample string 2",
"EmailOptIn": true,
"DepositPayment": true,
"PaymentProvider": 0
}
application/xml, text/xml
Sample:
<CheckoutByCreditCardTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models"> <DepositPayment>true</DepositPayment> <EmailOptIn>true</EmailOptIn> <PARes>sample string 2</PARes> <PaymentProvider>BORGUN</PaymentProvider> <Token>sample string 1</Token> </CheckoutByCreditCardTokenRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ConfirmBorgunPaymentPaymentResult| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccess | boolean |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsSuccess": true,
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<ConfirmBorgunPaymentPaymentResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Adventures.WidgetAPI.Core.Models.Mpi"> <IsSuccess>true</IsSuccess> <Message>sample string 2</Message> </ConfirmBorgunPaymentPaymentResult>