POST api/ApplePay/ProcessPayment

Description

Request

URI parameters

None.

Body

ProcessApplePayPaymentRequest
NameDescriptionTypeAdditional information
bookingId

string

None.

bookingHash

string

None.

applePayToken

Apple Pay wallet token as a JSON string. Web (Safari): JSON.stringify(event.payment.token) from ApplePaySession onpaymentauthorized. Native iOS (PassKit): JSON with paymentData (object or JSON string from PKPaymentToken.paymentData), plus paymentMethod and transactionIdentifier. Required on the first ProcessPayment charge; send empty when polling or after 3DS (same as live customer sites).

string

None.

successUrl

string

None.

expectedAmountInPence

Optional: amount in pence sealed into the wallet sheet; validated against charge amount before calling Fiserv.

integer

None.

amendmentRequestId

Optional: amendment request id when paying for a pending booking amendment.

globally unique identifier

None.

Sample request

application/json, text/json

Sample:
{
  "bookingId": "sample string 1",
  "bookingHash": "sample string 2",
  "applePayToken": "sample string 3",
  "successUrl": "sample string 4",
  "expectedAmountInPence": 1,
  "amendmentRequestId": "3cdbfa04-bb2e-454e-89d8-20f7c40be5a8"
}

Response

Resource description

IHttpActionResult

None.

Sample response

application/json, text/json

Sample:

Sample not available.