POST v{version}/{lang}/CheckoutByCreditCardToken?paymentProvider={paymentProvider}&currency={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

NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional 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>