> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ycloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Send order detail & checkout button message

## &#x20;Create  an order detail & checkout template

Visit [Templates](https://www.ycloud.com/console/#/app/dashboard/template) page and create a single product checkout template or WhatsApp order details template.

<img src="https://mintcdn.com/lchnan/PCdfO4VGvgYoGyQM/product-assets/ff0be63853-image-600.webp?fit=max&auto=format&n=PCdfO4VGvgYoGyQM&q=85&s=88401cea42b6f928d743cd0630fd2324" alt="YCloud product screenshot" width="1657" height="828" data-path="product-assets/ff0be63853-image-600.webp" />

##

## Send message

YCloud provides two methods for sending single product and order details messages, as shown below.

### 1. Send via API

Use[ send message api](/api-reference/whatsapp-messages/enqueue-a-message)

Please [click to see the request example](/en/api-reference/guides/whatsapp-platform/send-whatsapp-message)&#x20;

### 2.Send via Journey

Automatically send the checkout abandon message to your clients.

1. Set the trigger when you want to send a detailed message about the order. e.g. when the shopify checkout created.

<img src="https://mintcdn.com/lchnan/WD-ixrYVrqB7b7aQ/product-assets/4ab6d9a463-image-598.webp?fit=max&auto=format&n=WD-ixrYVrqB7b7aQ&q=85&s=f013fdd34701a810347f6ed23e0516d6" alt="YCloud product screenshot" width="1614" height="844" data-path="product-assets/4ab6d9a463-image-598.webp" />

2. Add a Send templates component and choose the order details template message

<img src="https://mintcdn.com/lchnan/6CxA7mK2t7klNAOL/product-assets/a682269677-image-599.webp?fit=max&auto=format&n=6CxA7mK2t7klNAOL&q=85&s=f84636ef44ff6a487fa38798028dcb2b" alt="YCloud product screenshot" width="1597" height="834" data-path="product-assets/a682269677-image-599.webp" />

3. Save and activate the Journey

When this event happens, it will automatically trigger this Journey.

## Receive the orders

### 1. Receive the order paid webhook

If you are sending WhatsApp Pay messages via API, you need to use this webhook to listen for user payment events. [Subscribe to this Webhook](/en/api-reference/webhooks/test-webhooks)&#x20;

You receive updates via webhooks when the status of the user-initiated transaction changes. It occurs when payment status changes to `captured` (when the payment is successfully completed), or `pending` (when the user attempted but yet to receive success transactions signal).

Sample:

```
{
  "id": "evt_eEkn26qar3nOB8md",
  "type": "whatsapp.payment.updated",
  "apiVersion": "v2",
  "createTime": "2024-10-10T07:08:00.000Z",
  "whatsappPayment": {
    "wabaId": "WABA-ID",
    "referenceId": "<reference-id>",
    "status": "captured | pending",
    "transactions": [
      {
        "id": "<transaction-id>",
        "type": "billdesk | payu | razorpay | zaakpay",
        "status": "pending | success | failed",
        "createdTimestamp": 1728544066000,
        "updatedTimestamp": 1728544066000,
        "amount": {
          "value": 21000,
          "offset": 100
        },
        "currency": "INR",
        "methodType": "upi | card | wallet | netbanking",
        "error": {
          "code": "error-code",
          "reason": "error-reason"
        }
      }
    ]
  }
}
```

### 2. Check the payment status here on WhatsApp Pay

<img src="https://mintcdn.com/lchnan/6CxA7mK2t7klNAOL/product-assets/9b7b2b1173-image-719.webp?fit=max&auto=format&n=6CxA7mK2t7klNAOL&q=85&s=3c21e7da5cbe1a84fe1dbb2a8d22be03" alt="YCloud product screenshot" width="2860" height="1530" data-path="product-assets/9b7b2b1173-image-719.webp" />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.