You can use your Salesforce Digital Experience page to quickly and easily collect payments or start a recurring payment for your unauthenticated guest users using Flow and Chargent’s Take Payment component. For example, you sell subscriptions to potential customers who want to sign up for a series of payments. This flow will allow you to create a form for your Digital Experience users that will both take the initial payment and start billing on a schedule.
Note: If you want to enable authenticated users to make payments via your Experience Cloud Site, see Take Payment Component.
Prerequisites #
Ensure you’ve completed the following steps prior to implementing community payments for Guest Users:
- Install and configure the latest version of Chargent using the Quick Start Guide.
- Ensure Take Payment is activated for your org. Please reach out to our support team to enable Take Payment.
- Set Up a Digital Experience Site.
Create the Flow #
- Configure flow to include a Take Payment Component

- Configure the Flow to Run as ‘System Context Without Sharing’
- While on the Flow, Go to View Properties
- Then Click on the Show Advanced
- Find the How to Run the Flow dropdown and Select System Context Without Sharing – Access All Data
- Don’t forget to Save and Activate your flow

Setup Digital Experience Page #
Creating Site Page #
- Go to Builder
- On Top-Left, Click on the Page Properties gear
- On the Bottom, Click on New Page
- On the Pop-Up Screen, Select Standard Page
- Next, Select the Page Layout and Click Next
- Give your page a Name (URL will Auto-Populate) & API Name
- Click on Create
- While on your new page, Click on the Page Properties gear
- Find Page Access and set it to Public
Publish the Site #
- Go to Top-Right and Click on Publish
Configure Guest User Access #
Allow Guest User to Access the Flow #
- From Setup, in the Quick Find box, enter Flows, and then select Flows
- Locate the flow to update and, from the actions dropdown next to the flow, select Edit Access
- Select Override default behavior and restrict access to enabled profiles or permission sets
- Save your flow
- Go to Settings
- Find and Click on Sites
- Click on the Site Label
- Click Public Access Settings to access the Guest User Profile
- Click Enabled Flow Access
- Click Edit
- Choose the flow from the Available Flows column and add it to the Enabled Flows column
- Click Save
Allow Guest User to Access Chargent #
- Go to Settings
- Find and Click on Sites
- Click on the Site Label
- Click Public Access Settings to access the Guest User Profile
- Click View Users
- Click the guest user’s name
- Under Permission Set Group Assignments, click Edit Assignments
- Select ‘Chargent Guest User’ and click Add
- Click Save
Create Sharing Rule #
- Go to Settings
- Find and Click on Sharing Settings
- Click New next to Gateway Sharing Rules
- Name it whatever you want
- Under Rule Type select ‘Guest User Access, based on criteria’
- Criteria can be the following:
- Active equals True
- Under ‘Share With’, select the Guest User for your Site
- Click Save
Test Your Flow #
- Go to your public page
- Copy your Site URL and add your Page Name
- For Example:
- https://appfrontierllc5-dev-ed.my.site.com/s/gym-subscription
- Test in Incognito Mode
- Validate that it created and configured the required records
