Skip to content
Espectro Soluções

Espectro Pay: order notifications by WhatsApp and Messenger

Send the customer automatic order notifications: by WhatsApp (PIX generated, Order paid, PIX expired (with coupon)) and by Messenger (Order paid and Order shipped).

On this page
  1. Who does it
  2. Before you start
  3. Step by step
  4. Part A. Set up WhatsApp
  5. Part B. Set up Messenger
  6. Part C. Save and turn on
  7. Part D. Send the "order shipped" notification
  8. How to know it worked
  9. Common problems and fixes

Who does it

The Account owner (saves the credentials and turns the notifications on). The team can also use the Notify that it was shipped button on the order.

Before you start

  • Everything starts OFF. No message goes out to the customer until you turn on the channel and the event.
  • The texts are templates approved by Meta. You create the template in Meta itself (in WhatsApp Manager, under message templates, for WhatsApp; in the Page's message templates, for Messenger) and wait for approval. Espectro Pay does not create or edit templates: it only lists the approved ones and fills in the variables ({{1}}, {{2}}).
  • WhatsApp: the screen warns that sending through WhatsApp still depends on Espectro's Tech Provider verification at Meta, which is in progress. Before setting it up, check on the Espectro Discord whether it is already available. You will need the WhatsApp Business account ID, the Phone number ID and a system user Token with WhatsApp. Messenger does not depend on this verification.
  • Messenger: Page ID and Page token (or the system user's token). It only reaches people who have already chatted with the Page and whose conversation was linked to the order in Messages (link the conversation to the order).

The notifications use the ID and token pasted on this screen, separate from the customer service WhatsApp connected in Channels (WhatsApp for customer service). Connecting WhatsApp in Channels does not turn on the notifications, and vice versa.

Step by step

Part A. Set up WhatsApp

  1. In the left menu, in the Espectro Pay group, click Order notifications.
  2. In the WhatsApp card, fill in:
    • WhatsApp Business account ID;
    • Phone number ID (once saved, the number shows next to the label);
    • Token (starts with EAA). Once saved, the field shows "already saved; empty = keep": leave it empty to keep what is already saved.
  3. Click Load templates (the button saves the IDs and the token before fetching). It shows how many Meta returned ("3 template(s).").
  4. For each event (PIX generated, Order paid, PIX expired (with coupon)):
    • turn on the event's switch;
    • choose the Template... (a template "in review" is grayed out and cannot be chosen);
    • for each variable, choose what goes in it: Customer first name, Order code, Total amount, Product name (with the chosen option, for example "Camiseta - Cor: Azul"), Store name, PIX page link, Recovery coupon (the code chosen in the store) or Tracking code;
    • the template text shows below, so you can check it.
  5. Turn on Channel on, at the top of the card.
Order notifications with the WhatsApp and Messenger cards, everything off by default
Order notifications with the WhatsApp and Messenger cards, everything off by default

Part B. Set up Messenger

  1. In the Messenger card, fill in:
    • Page ID (once saved, the Page name shows next to it);
    • Page token (empty = keep, if it is already saved).
  2. Click Load templates (it also saves before fetching). Without an ID you see "Enter the Page ID."; a rejected token shows "Meta did not accept the Page token: ...".
  3. For each event (Order paid and Order shipped): turn on the switch, choose the Template... and the variables.
  4. Turn on Channel on.

Part C. Save and turn on

  1. Click Save notifications, at the bottom.
  2. Confirm "With this on, customers start receiving the selected notifications. Confirm?".
  3. You see "Notifications saved."
Messenger card, Save notifications and Latest notifications
Messenger card, Save notifications and Latest notifications

Part D. Send the "order shipped" notification

  1. When you ship the order, open the paid order in Orders (Orders and automatic emails).
  2. In the Customer notifications card, click Notify that it was shipped (only shows on a paid order) and confirm ("Send the order shipped notification to the customer now?").
  3. You see "Notification sent." or the reason it did not go out, and the result stays in the card's table.

This notification only exists on Messenger and goes out even with the channel off, as long as the template is chosen (without a template: "No "order shipped" template chosen in Order notifications."). The team can send it too. Test orders do not get notifications.

How to know it worked

  • The Latest notifications card, at the end of the Order notifications screen, lists each send: when, channel, event, order and status (Sent or the reason it failed).
  • In the order details, the Customer notifications card shows the channel, the notification, the template, the status and the Delivery column (on WhatsApp: Sent, Delivered, Read or Failed).

Common problems and fixes

ProblemFix
"Enter the Page ID."Fill in the Page ID before Load templates.
Load templates returns "0 template(s)."There is no approved template in Meta for that account or Page. Create one and wait for Meta's approval.
The template shows "in review".Meta has not approved it yet. Wait for approval.
"Meta did not accept the Page token: ..." or Meta rejected the WhatsApp token.Generate a new token with the right permissions and paste it again.
"No "order shipped" template chosen in Order notifications."Choose a template for the Order shipped event in Messenger and save.
The Messenger notification did not arrive.The customer must have chatted with the Page, and the conversation must be linked to the order (Messages, Link to order).
The notification shows "Not sent".The channel or the event is off, or the template is missing. Check the Order notifications screen.
I connected WhatsApp in Channels and the notifications do not go out.They are separate things: the notifications use the ID and token pasted on this screen.
"Only the account owner can change stores, webhooks, payment and notification credentials."Your role is Team. Ask the owner.
The WhatsApp Delivery column stays empty.The status (Delivered, Read) only shows when Meta sends the information back. If the message was sent and the column is still empty after a few hours, let us know on the Espectro Discord.