POST api/ApplePay/ProcessPayment
Description
Request
URI parameters
None.
Body
ProcessApplePayPaymentRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| bookingId | string |
None. |
|
| bookingHash | string |
None. |
|
| applePayToken |
Apple Pay JS payment.token as a JSON string: in onpaymentauthorized, JSON.stringify(event.payment.token). 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": "f49e71e4-12fb-4e7e-b6c4-e40c6a53a5cd"
}
Response
Resource description
IHttpActionResultNone.
Sample response
application/json, text/json
Sample:
Sample not available.