Loading
Salesforce Payments
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Add a Payment Link to a Salesforce Record

          Add a Payment Link to a Salesforce Record

          To create a Pay Now payment link, use the Generate Payment Link flow. This flow guides you through the link creation process. How you incorporate a link into your business application and share it with your customer is specific to your work flow.

          Required Editions

          This procedure assumes knowledge of Salesforce declarative tools and working with objects.

          1. Establish a lookup relationship between the Payment Link object and the object that you want to accept payments for.
            The lookup relationship creates a record of what the payment link is for. For example, to collect payment for an invoice or work order, add a lookup field on the Invoice or Work Order object.
            1. From Setup, go to Object Manager and locate the Payment Link object.
            2. Select Fields & Relationships.
            3. Click New, and select Lookup Relationship.
            4. Follow the prompts, and select the object that you want the Payment Link to relate to.
          2. In Flow Builder, the Generate Payment Link flow automates payment link generation. Use the flow as is or customize it. If you want to customize the flow, complete these tasks. Otherwise, go to the next step.
            1. In Setup, and in the Quick Find box, enter flows, and select Flows.
            2. Select the Generate Payment Link flow, save it under a new name, then modify it.
            You can also build your own application workflow using the Payment Link object and a Salesforce declarative tool, such as Flow or Quick Actions. You can also use a developer tool, like Apex invocable actions.
          3. (Optional) Add the payment link flow as an action to an object’s page layout.
            You don't have to create an action, but it's an efficient way to generate a link.
            1. From Object Manager, choose the object that you want to create a payment link from.
            2. Select Buttons, Links, and Actions, and then click New Action.
            3. For Action Type, select Flow and select the payment link flow.
            4. Enter a label and name for the link, and save your changes.
            5. Select Page Layouts.
            6. From Mobile and Lightning Actions, drag the action that you created to the Salesforce Mobile and Lightning Experience Actions section of the page layout.
              A button to generate a payment link is added to all record pages for the object. You can generate as many payment links as you want for a single object.
            Pay Now doesn’t perform post-processing logic, so you must configure automation for post-payment processing. For example, when a payment is received, add a process to mark an invoice as paid with the amount sent.
          4. Test your action button to ensure that it triggers the flow. When the flow starts, select which link you want to create.
            • Predefined Amount —sends the customer to a page that shows only an amount owed.
            • With Products —sends the customer to a payment page that shows a list of products, provides shipping options, and calculates the tax based on the shipping address and products purchases.
            If your payment link takes you to an error page, go to the Payments Link list view and verify that the link’s status is active. Next, open the link in your browser’s private or incognito browsing mode.
          5. Test the generated payment link to make sure that it takes you to the correct Pay Now page. If you accept payments with Apple Pay, test the link by opening it in a Safari browser.
          Example
          Example In Object Manager, modify the Quote object. Add an action named Generate Payment Link to the Quote page layout. When you click the new Generate Payment Link button on the page, the flow starts and walks you through payment link creation. Copy the resulting link and share it with your customer.
          Payment link action button on the quote record page
           
          Loading
          Salesforce Help | Article