---
schema_version: "1"
id: 7dbce768b6af733f6fc97ea6b99e147a95b2bb85d2bafad8a620ea3be8f9b33a
title: Setup WhatsApp Pay
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/messaging_whatsapp_pay_setup_1.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.messaging_whatsapp_pay_setup_1.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 23cc2b276083d82131b8269168cdb41935556776bd699a2cc50f3f52b0732730
description: Service reps run the flow in the Service Console to send the component to customers. Customers click the component to view the request details and make their payment.
products:
  - Service Cloud
  - Digital Engagement
release: "264"
---
# Setup WhatsApp Pay

Service reps run the flow in the Service Console to send the component to customers. Customers click the component to view the request details and make their payment.

Before you begin, here are the things you must perform.

- [Create a series of Apex classes](https://help.salesforce.com/s/articleView?id=service.messaging_whatsapp_payment_apex_snippets.htm&release=264.0.0&type=5 "Use these Apex classes to define the parameters required for WhatsApp Pay integration.") so that you’re able to fill parameters in the payment component for a payment screen flow. These Apex classes control the information that appears in the component. For more information on WhatsApp Pay Apex classes, see [Create an Apex Class to Process Payments Status](https://help.salesforce.com/s/articleView?id=service.messaging_whatsapp_pay_create_apex.htm&release=264.0.0&type=5 "On the Apex Classes page in Setup, create an Apex class to facilitate payment status processing.").
- For WhatsApp Pay Brazil, if you’re using PIX as your payment method, make sure that you have specified the merchant name property.
- WhatsApp Pay India supports Payment gateways, UPI, and Payment Links payment types. For more information see, [Meta WhatsApp Payment - India](https://developers.facebook.com/documentation/business-messaging/whatsapp/payments/payments-in/overview).
- If you’re sending order status back to the end user, create two custom parameters in your payment messaging component. One for capturing the reference ID and one capturing the order status label. Also, make sure that you’ve configured your WABA template for order status. If you haven't configured still, login to your WABA account and go to your message template. Under the **Utility** tab, select **Order Status** and then submit for review.
- Create a custom parameter to capture the shipping amount. This being an optional parameter that isn't available to you by default.
- The messaging session expiry times can differ from payment component expiry times.
- Make sure that you send the order status back to customer in the chat.

1. [Create a WhatsApp Pay Messaging Component](https://help.salesforce.com/s/articleView?id=service.messaging_add_whatsapp_pay.htm&release=264.0.0&type=5 "Use these steps to create a WhatsApp Pay Messaging Component.") that service reps can send in messaging sessions.
2. [Create an order status template in WABA](https://www.facebook.com/business/help/2055875911147364?id=2129163877102343) and import it into Salesforce as a [WhatsApp external template](https://help.salesforce.com/s/articleView?id=service.messaging_automated_enhanced.htm&type=5&language=en_US).
3. Create a WhatsApp Pay Screen Flow.
    
    For more information on how to create a sample WhatsApp Pay Screen Flow, see [Tutorial: WhatsApp Pay Sample Screen Flow](https://help.salesforce.com/s/articleView?id=service.messaging_create_wa_screen_flow.htm&release=264.0.0&type=5 "This tutorial guides you through building a sample screen flow that uses a payment messaging component to send a payment request to a customer. You can use the component to request payments from customers directly within a WhatsApp messaging channel. To send this component and populate it with dynamic order details, you can build a screen flow. You can use this flow to gather necessary payment data by calling Apex actions. The data includes line items, totals, order context, and custom parameters like shipping amounts. After data gathering, the flow uses the Enhanced Message action to send the component to the user.").
    
    1. Trigger the order status template using [flows](https://help.salesforce.com/s/articleView?id=003960895&type=1&language=en_US) using the details from the custom Salesforce object.
4. [Send WhatsApp Payment requests](https://help.salesforce.com/s/articleView?id=service.messaging_components_wa_payment_flow.htm&release=264.0.0&type=5 "Set up a screen flow that service reps can run to send payment messaging components to customers in messaging sessions. The flow executes the Apex classes and passes the transaction details into the payment messaging component. ") in messaging sessions.