Overview

Send messages

Sending a message to your business channel using the Communications API generally involves the following steps:

  • Select a message type.
  • Send your message.
  • Google Pay delivers notifications.

All messages are delivered to your business channel inside the Google Pay app along with an optimized notification.

Each message type falls into one of the following two categories:

  1. Pre-transaction messages - This category includes recharge reminder messages, bill payments, monthly SIP investment reminders, loan installment reminders, or available offers.

  2. Post- transaction messages - This category includes travel tickets or purchase confirmations that can be sent to a customer after they make a payment using Google Pay.

Message templates

Google Pay allows you to send messages using the following templates:

Pre-transaction

Post-transaction

Each message template has defined contents and structure. The content contains variables that can be replaced with the information taken from the event that triggers the notification.

Message template properties

Messages contain the following fields.

Merchant

Aggregator partners can call the message API provided by Google Pay on behalf of the merchant. For non-aggregator merchants, the merchant value is validated against the service account.

Property Description
googleMerchantId Can be a Google-assigned ID or partner assigned identifiers.

Recipient

Property Description
userId Must be included in messages sent before a payment transaction.
transactionId Must be included in messages sent after a payment transaction.

Message body

Property Description
merchantMessageId Unique for every message. Ensures that duplicate notification messages aren’t created if the merchant sends the same message multiple times.
The ordered pair (googleMerchantId and merchantMessageId) is unique for all messages.
templateType Select the template type from pre-defined templates to send the appropriate respective message to users. For example, recharge reminder, bus, train, airline, movie, hotel reservation and more.
Pass the relevant parameters in the selected template.