As part of Reserve with Google's end-to-end integration, you can opt in your merchants to receive payment from users when they make a booking, appointment, or reservation. Google works with payment processors to set up tokenization. Payment processors then use unique tokens to securely pay merchants.
For payment-secured bookings, we render a Payment Info module in the checkout flow. This allows the user to enter their credit card information.
For your merchants to receive payments through Reserve with Google, you must meet the following requirements:
- Use a supported payment processor. The latest list of supported processors can be found on the Google Pay website.
- Accept tokenized payments in accordance with your processor.
Changes to feeds and booking server for payments
Payments are done through an opt-in process at the merchant level. You must enable payments for any merchant who needs to receive payment for any of their services. To enable payments, changes must be made to the feeds and to the booking server.
Merchant Feed: Specify payment information through the
tokenization_parameterset in the
tokenization_configfield. The set is dependent on the payment processor chosen. The set is the same set of
paymentMethodTokenizationParameters.parametersthat would be passed to Google Pay if you were to integrate with it.
Services/Availability Feeds: Specify payment requirements based on your appropriate use case. For more details, see Use cases for payments.
- If users make single booking requests, like those applicable to fitness,
beauty, and dining, use
- If users are buying tickets, applicable to things-to-do, use
- If users make single booking requests, like those applicable to fitness, beauty, and dining, use
payment_processing_parameters.unparsed_payment_method_tokenas part of the
CreateOrderRequest. This is the same
paymentDatathat would be received by your callback in a Google Pay integration.
Use cases for payments
There are four main use cases for payments:
- Complete prepaid bookings
- Deposits required for the booking
- No-show fees in case the user doesn't show up for the booking
- Credit card required for the booking
Complete prepaid bookings
Figure 1 shows the flow of activities between users, you (the scheduling partner), Google, and the payment processor.
- A payment must be for 100% of the service cost amount. In other words, services must be paid in full at the time of the booking.
Changes to services feeds
- Set the
REQUIREDfor that service.
- Set the
REQUIRE_CREDIT_CARD_CONDITIONALfor that service.
Deposits and no-show fees
Deposits and no-show fees are set up in similar ways. Figure 2 shows the flow of these activities between users, you (the scheduling partner), Google, and the payment processor.
Deposits and no-show fees can be used to ensure a user shows up for their booking.
- A deposit can be charged to the user's credit card either upfront or at a later time.
- A no-show fee can be charged to the user if they don't show up to the booking.
- If necessary, both deposits and no-show fees can be applied together for a booking.
Changes to services or availability feeds
Deposits and no-show fees can be specified at the Service level or at the Availability slot level for a merchant. If you specify them at the availability slot level, that overrides the service-level definitions.
- To enable deposits, set the
depositfield at the service or availability slot level.
- To enable no-show fees, set the
no_show_feefield at the service or availability slot level.
- Set the
REQUIRE_CREDIT_CARD_CONDITIONALat the service or availability slot level.
- (optional) Set
Credit card required
There may be other use cases that require a credit card at the time of booking.
- Set the
REQUIRE_CREDIT_CARD_ALWAYSat the Service level or at the Availability slot level for a merchant.
Cancellation and Refunds
Cancellations and refunds are initiated by the partner when a payment is involved with the booking. Reserve with Google doesn't allow users to use the Reserve with Google interface to cancel bookings with payments. That's because all payments are processed by you.
Changes to the booking server
After you provide a refund to the user, you must send an
UpdateBookingbooking server call to change the payment status of the booking. Set
PrepaymentStatus = PREPAYMENT_REFUNDED.
- Use the new
BookingStatus = CANCELEDand
PrepaymentStatus = PREPAYMENT_REFUNDED. The enum value
CANCELED_AUTOMATIC_REFUNDis deprecated for both Maps Booking API and gRPC templates.
- Use the new