Sales and customers

Automate a purchase in Direct: from choosing a product to a payment link

Iranian customers like everything to finish in the same Direct chat. With a purchase flow, everything from choosing the product to paying happens without you and you only see the result.

7 min readUpdated:
  1. Prepare the catalog

    In "Products and services" enter the product, price, image and variants (such as size and colour). The price is read from this catalog.

  2. Start from the "Purchase" template

    In the "Automation flow builder" pick the account and open the ready Purchase template. You can edit it freely.

  3. Show products and variants

    The "Show catalog", "Show prices" and "Show variants" steps let the customer choose.

  4. Collect delivery details

    Use the "Capture input" step to ask for phone and address (and the name if you need it). If they do not answer, it asks again. The template does not ask for a quantity and uses 1; add a "Capture input" step with the variable name quantity if customers should choose how many.

  5. Optional promo code

    The template's review step has two buttons: "Confirm & pay" and "I have a promo code". The second opens a "Promo code" step: the customer sends a code, Ravand checks it for the chosen product and a good code is taken off the payment automatically. A wrong code says why and asks again; Back returns without a code. Make codes under "Discount codes" (see the guide "Proforma and invoices"). A code with limited uses is counted when the purchase is paid, and the purchase's invoice shows the discount.

  6. Create the payment link

    The "Create payment" step makes a payment link. The server reads the product, price and quantity from the catalog and the customer's answers; the customer cannot change the amount.

  7. Test and publish

    Try the flow in the simulator, publish it and make a small real purchase yourself to be sure everything works.

  8. After the payment

    The purchase is recorded under "Transactions and purchases" and a follow-up request is created for your team. If branded receipts are on for the page, one receipt is issued. The money goes to your receiving wallet (the Ezpay connection in "Business wallet").

Tips

  • Always leave a "talk to a person" path for special questions and payment problems.
  • Keep stock and prices up to date. When a counted stock reaches zero the customer is told "sold out" or "only N left" and no purchase is made; if you connect a failure step to the "Create payment" step you write the message yourself and can use {{stockLeft}} for how many are left. Without it a ready message is sent.
  • Always test with a small real purchase before publishing.

Common questions

The payment went through but no purchase was recorded. What now?

Write to us with the support button and send the payment tracking number.

Can the customer change the price?

No. The server calculates the price.

Where does the money go?

To the Ezpay wallet you connected for the business.