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: Google Pay payment token (encrypted payment data from loadPaymentData()).

string

None.

successUrl

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

string

None.

Sample request

application/json, text/json

Sample:
{
  "bookingId": "sample string 1",
  "bookingHash": "sample string 2",
  "googlePayToken": "sample string 3",
  "successUrl": "sample string 4"
}

Response

Resource description

IHttpActionResult

None.

Sample response

application/json, text/json

Sample:

Sample not available.