← Blog

·

Selling on WhatsApp with payment links without losing orders

Updated on November 10, 2026

To sell on WhatsApp with a payment link without losing orders, create a unique link per order in your payment gateway (Mercado Pago, Stripe, Asaas or another) with the order ID embedded, send that link in the chat and let the gateway’s payment webhook tell your system when the money comes in. With that signal, the system confirms the order on WhatsApp by itself, through the official API. What makes orders get lost is the manual step in the middle: checking the bank statement, digging for the receipt in the chat, remembering who paid.

Where orders get lost

Businesses that sell on WhatsApp with a fixed link (the same link for everyone) or a Pix key pasted by hand (Pix is Brazil’s instant payment system) tend to run into the same problems:

  • the customer pays and sends the receipt, but nobody ties the payment to the right order;
  • two customers pay the same amount on the same day and the statement doesn’t say who is who;
  • the customer goes quiet after getting the link and nobody remembers to follow up;
  • confirmation depends on someone seeing the bank notification.

The fix is to treat the link as part of the order, not as text pasted into the chat.

The flow in 5 steps

  1. Order created. The customer picks the product in the chat (or in the WhatsApp catalog) and your system stores an order with ID, items, amount and the customer’s WhatsApp number (wa_id).
  2. Link created with the ID. The system calls the gateway API and creates a link just for this order, with the order ID in the reference field.
  3. Link sent. Inside the 24-hour window opened by the customer, the link goes as a text message or URL button. Outside the window, only through an approved template.
  4. Payment webhook. When the payment is approved, the gateway calls your endpoint. You check the status directly in the gateway API and mark the order as paid.
  5. Confirmation on WhatsApp. The system sends the confirmation to the order’s wa_id. If the customer hasn’t paid after a few hours, one single reminder.

Want to try it while you read? Create a Vectalk account and send your first message through the official API. Create free account →

The reference field in each gateway

Step 2 is what prevents mix-ups. Each gateway has a field where you store the order ID, and it comes back in the webhook or in the payment lookup:

GatewayHow to create the linkField for the order IDHow you know it was paid
Mercado Pago (Checkout Pro)Create a preference (POST /checkout/preferences), which returns the init_point linkexternal_referencepayment topic webhook + GET /v1/payments/{id}
Stripe (Payment Links)Dashboard or /v1/payment_links APIclient_reference_id (URL parameter)checkout.session.completed event
AsaasCreate a charge; the link is the invoiceUrlThe charge’s externalReferencePAYMENT_RECEIVED or PAYMENT_CONFIRMED event

Details for each:

  • Mercado Pago. Checkout Pro accepts credit or debit card, Pix, boleto (Brazilian bank slip), Mercado Pago account and Mercado Pago’s credit line (Linha de Crédito). You can set a notification_url per preference. The webhook notification carries only the payment ID (data.id), not the status: query GET https://api.mercadopago.com/v1/payments/{id} to see whether it’s approved. Return 200 or 201; Mercado Pago waits 22 seconds and retries every 15 minutes if it gets no response. Validate the x-signature header with your application’s secret key.
  • Stripe. According to the Payment Links URL parameters, client_reference_id accepts up to 200 characters (letters, numbers, hyphens and underscores) and is sent in checkout.session.completed. Details in Stripe + WhatsApp.
  • Asaas. The invoice link is the charge’s invoiceUrl, and payment events arrive at the payments webhook. See Asaas + WhatsApp.

Two precautions apply to any gateway: don’t mark the order as paid from the return page (the customer may close the browser first, or someone may open the success URL without paying), and don’t trust the webhook body alone. Confirm the status in the API.

Example: Mercado Pago + WhatsApp in Node.js

The example creates the preference with the order ID, sends the link in the chat and, when the webhook arrives, looks up the payment and confirms on WhatsApp. x-signature validation is left out to keep it short; Mercado Pago’s official SDKs handle that check.

// `app` (Express) and `db` belong to your system
const MP = "https://api.mercadopago.com";
const mpHeaders = { Authorization: `Bearer ${process.env.MP_ACCESS_TOKEN}`, "Content-Type": "application/json" };

async function whatsapp(body) {
  const r = await fetch("https://apis.vectalk.com.br/api/messages", {
    method: "POST",
    headers: { Authorization: `Bearer ${process.env.VECTALK_TOKEN}`, "Content-Type": "application/json" },
    body: JSON.stringify({ messaging_product: "whatsapp", ...body }),
  });
  return r.json();
}

// 1) Create the link and send it inside the 24h window
export async function sendLink(order) {
  const r = await fetch(`${MP}/checkout/preferences`, {
    method: "POST",
    headers: mpHeaders,
    body: JSON.stringify({
      items: order.items.map((i) => ({ title: i.name, quantity: i.qty, unit_price: i.price, currency_id: "BRL" })),
      external_reference: order.id,
      notification_url: "https://yoursystem.com/webhooks/mercadopago",
    }),
  });
  const pref = await r.json();

  return whatsapp({
    to: order.waId,
    type: "interactive",
    interactive: {
      type: "cta_url",
      body: { text: `Order ${order.id}: ${order.total}. Tap the button to pay by Pix, card or boleto.` },
      action: { name: "cta_url", parameters: { display_text: "Pay now", url: pref.init_point } },
    },
  });
}

// 2) Webhook: respond fast, confirm afterwards
app.post("/webhooks/mercadopago", async (req, res) => {
  res.sendStatus(200);
  if (req.body?.type !== "payment") return;

  const pg = await fetch(`${MP}/v1/payments/${req.body.data.id}`, { headers: mpHeaders }).then((r) => r.json());
  if (pg.status !== "approved") return;

  const order = await db.orders.markPaid(pg.external_reference, pg.id); // returns null if already paid
  if (!order) return;

  await whatsapp({
    to: order.waId,
    type: "template",
    template: {
      name: "pagamento_confirmado",
      language: { code: "pt_BR" },
      components: [{ type: "body", parameters: [{ type: "text", text: order.id }] }],
    },
  });
});

Why a template for the confirmation if the customer just chatted with you? Because payment may land after 24 hours (a boleto, for example), when the window has already closed. A utility template works in both cases. If you know the window is open, a regular text message also works.

The cta_url button is an interactive message, which can only be sent inside the customer service window. The full list of formats is in interactive messages.

Reminder for unpaid links

If the order is still unpaid a few hours later, a single reminder recovers part of the sales. Simple rules:

  • Inside the window: free-form text (“Your order is still reserved. The link is still valid.”).
  • Outside the window: a template. Meta’s categorization guidelines put abandoned cart reminders (“you left items in your cart, check out now”) in marketing, even when the customer requested them. An unpaid order reminder looks a lot like that, so plan for a marketing template and the marketing rate; with a coupon (“pay today and get 10% off”), it’s clearly marketing.
  • One reminder is enough. Multiple reminders to people who didn’t reply lead to blocks.

The guide to recovering Pix, boleto and abandoned carts has copy and timing.

Payment link or payment inside WhatsApp?

For businesses in Brazil, Meta also offers the Payments API – Brazil, with in-chat payment through the order details message (order_details). The practical difference:

CriterionPayment linkIn-chat payment
Payment methodsThe gateway’s (card, Pix, boleto, installments)Those Meta supports for Brazil
Where the customer paysGateway pageInside WhatsApp
Integration effortLow: gateway API + webhookHigher: payment setup on the account
ConfirmationGateway webhookDepends on the payment integration enabled on the account

To compare in depth, see Pix payments on the WhatsApp API and orders with order_details.

What the WhatsApp side costs

Sending the link inside the 24-hour window the customer opened is a service message: since October 1, 2026, each number has an allowance of 1,000 per month, and anything above that is charged at R$ 0.0350 (Brazilian reais) in Brazil. The confirmation by utility template costs R$ 0.0350 per delivered message, even inside the window. A marketing reminder costs R$ 0.3217. Gateway fees are a separate matter, agreed with the gateway. To simulate, use the WhatsApp API pricing calculator.

How to do this with Vectalk

Vectalk is a proxy for Meta’s official Cloud API. Your system sends the link, buttons and templates to https://apis.vectalk.com.br/api/messages with the same JSON as Meta, and receives customer messages on the same webhooks. Vectalk billing is prepaid credit, deducted for each delivered message, with no card at Meta.

Vectalk has no built-in inbox, AI or bulk sending: the order, the link and the confirmation live in your system, your store or an orchestrator like n8n. The fundamentals are in the official WhatsApp API guide, endpoints at docs.vectalk.com.br and sign-up at apps.vectalk.com.br/register.

Frequently asked questions

Can I send the same payment link to every customer?

You can, but then you don’t know who paid for what without checking by hand. One link per order, with the ID in the reference field, is what lets you confirm automatically.

Does a WhatsApp payment link need a template?

Only outside the 24-hour window. If the customer wrote in the last 24 hours, the link goes as text or a button. Otherwise, use an approved template with a URL button.

How do I know the customer paid without checking the statement?

Through the gateway webhook: Mercado Pago notifies on the payment topic, Stripe on checkout.session.completed and Asaas on PAYMENT_RECEIVED. Confirm the status in the API before releasing the order.

The customer sent a payment receipt in the chat. Does it count as payment?

Don’t trust a receipt sent as an image: it can be edited. Use the gateway’s confirmation. The receipt only helps your team find the order.


Official sources consulted on November 10, 2026: Checkout Pro (Mercado Pago), Webhooks (Mercado Pago), Payment Links URL parameters (Stripe), After a payment link payment (Stripe), Payments webhook (Asaas), Payments API – Brazil (Meta), Interactive CTA URL messages (Meta), Template categorization (Meta), WhatsApp platform pricing (Meta), Vectalk documentation.

Put your business on the official WhatsApp

Create your account, connect your number to the official API (you can keep the app with coexistence) and start serving customers and sending messages.