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 outstanding balance before calling Fiserv. |
integer |
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
}
Response
Resource description
IHttpActionResultNone.
Sample response
application/json, text/json
Sample:
Sample not available.