POST api/GooglePay/ProcessPayment

Description

Processes a Google Pay payment. Validates booking, resolves order, sends token to Fiserv, and returns result (success, 3DS, or declined).

Request

URI parameters

None.

Body

ProcessGooglePayPaymentRequest
NameDescriptionTypeAdditional information
bookingId

Required: Booking ID (Group_ID) used to resolve the order for payment.

string

None.

bookingHash

Required: Security hash to validate the booking.

string

None.

googlePayToken

Required on first charge: Google Pay wallet token (ECv2 JSON string). Web: paymentMethodData.tokenizationData.token from loadPaymentData() (Google Pay JS). Native Android: same ECv2 string from PaymentData tokenization after PaymentsClient.loadPaymentData. Poll / after 3DS: send an empty string.

string

None.

successUrl

Optional: Success URL for redirect after payment (from CreateBooking). If not provided, built from bookingId/bookingHash.

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",
  "googlePayToken": "sample string 3",
  "successUrl": "sample string 4",
  "expectedAmountInPence": 1,
  "amendmentRequestId": "4f1ed783-ed4d-4f56-b216-9c882fcd0b83"
}

Response

Resource description

IHttpActionResult

None.

Sample response

application/json, text/json

Sample:

Sample not available.