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:
Pre-transaction messages - This category includes recharge reminder messages, bill payments, monthly SIP investment reminders, loan installment reminders, or available offers.
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.
Google Pay allows you to send messages using the following templates:
- Payment reminders
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.
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.
||Can be a Google-assigned ID or partner assigned identifiers.|
||Must be included in messages sent before a payment transaction.|
||Must be included in messages sent after a payment transaction.|
||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.
||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.