How to use Payments API
This document has a Portuguese version.
Pre-requisites
Steps to implement
1
Send a product catalog
**************Send PRODUCT CATALOGUE***************
URL: https://waba-v2.360dialog.io/messages
Sample Request Body:
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "{RECIPIENT_USER_PHONE_NO_HERE}",
"type": "interactive",
"interactive": {
"type": "list",
"header": {
"type": "text",
"text": "Obrigado por participar desta DEMO"
},
"body": {
"text": "O objetivo é demonstrar como integrar pagamentos no Brasil usando PIX como Gateway de Pagamento"
},
"footer": {
"text": ""
},
"action": {
"button": "Buy an Item",
"sections": [
{
"title": "Items",
"rows": [
{
"id": "item-chocolate-10",
"title": "Chocolate (R$ 10)",
"description": "Chocolate Ao Leite Recheio Oreo Lacta Pacote 90g"
},
{
"id": "item-coffee-20",
"title": "Café (R$ 20)",
"description": "Café Torrado E Moído A Vácuo 3 Corações Gourmet Pacote 250g"
}
]
}
]
}
}
}4
Update the user with order status
**************Send ORDER STATUS***************************
URL: https://waba-v2.360dialog.io/messages
Sample Request Body:
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": ""{RECIPIENT_USER_PHONE_NO_HERE}"",
"type": "interactive",
"interactive": {
"type": "order_status",
"body": {
"text": "Detalhes do seu pedido"
},
"footer" : {
"text": "Reference: 123456789"
},
"action": {
"name": "review_order",
"parameters": {
"reference_id": "123456789",
"order": {
"status": "{ORDER_STATUS_HERE}"
}
}
}
}
}PIX Payments
Sending PIX without open conversation (using templates)
Generating a static Pix code
Postman collection
Portuguese version
Pré-requisitos
Etapas para implementar
2
Pagamentos com PIX
Enviando PIX sem janela de conversa aberta (usando templates)
Gerando um código PIX estático
Coleção no Postman
Extra resources
Last updated
Was this helpful?
