Set up the public payment-link site
A payment link opens a page that anyone can reach without logging in. In Salesforce that is a public Experience Cloud site — or public pages in a site you already have — whose guest user may run the REDA Pay screens and read exactly the order behind the link, nothing else. This article builds that site from nothing: the site, its pages and their exact names, the component settings, public access, the guest user's permission set and Apex access, the four guest sharing rules, the public-API preference, the processing account settings, publishing, and a test as an anonymous payer. Every step names the symptom you see if it is missed, because a missed step here looks like a product fault and is slow to find later.
There are two kinds of Experience Cloud site, and REDA Pay has a set of components for each. Find out which kind yours is first (Part 1).
- REDA Pay is connected to Payload and the processing account is configured and branded — the public page shows that branding. See Setup roadmap.
- You hold REDA Pay - Admin User and are a Salesforce administrator who can create Experience Cloud sites, edit profiles and create sharing rules (Customize Application, Manage Profiles and Permission Sets, Manage Sharing; a System Administrator has them).
- Digital Experiences are enabled in the org: Setup → Digital Experiences → Settings → Enable Digital Experiences. If they are not, enable them and choose a domain name; this cannot be undone.
- You know whether the Pay Profile is on Payload API v1 or v2 — see Choose the Payload API version. It decides which components you place.
How a payment link works
Your team creates a Link order from the payment screen. REDA Pay builds a Link URL: the address of a page on your public site, with an encrypted identifier of the order attached. The customer opens it, the page's entry component reads the order, hands over to a payment page where the customer enters a card or bank account and confirms, and a success or error page shows the result. Four pages, then, and the entry component must know the names of the other three.
Part 1 — Decide the site and the components
Open Setup (the gear icon, top right) → type Digital Experiences in Quick Find → All Sites. If you will reuse a site, click Builder next to it; otherwise click New, pick a template and create it.
| Site kind | How to recognise it | REDA Pay components to use | Pay Profile version |
|---|---|---|---|
| Aura (the longer-established kind) | Templates such as Customer Service, Partner Central, Customer Account Portal, Build Your Own (Aura). In Builder the Components panel shows a Custom Components group with the REDA Pay components listed by their plain names | The classic components NewPayOrder, NewPayOrderRequest, NewPayOrderResult — or the v2 components below | v1 with the classic components; v2 with the v2 components |
| LWR (Lightning Web Runtime) | Templates such as Build Your Own (LWR), Microsite (LWR), Enhanced LWR. The classic REDA Pay components are not offered in its Components panel | The v2 components only: REDA Pay - New Pay Order (v2), REDA Pay - Pay Order Request (v2), REDA Pay - Pay Order Result (v2) | v2 |
The rest of this article names the v2 components. Where you use the classic ones on an Aura site, the same pages, settings and access apply; the classic component names are given in brackets.
Part 2 — Create the four pages
In Experience Builder, open the Pages menu (the page name at the top left) and click New Page → Standard Page → Blank for each of the four pages. Give each a name; Salesforce derives the page's API Name from it. Write the API names down exactly as Builder shows them, letter case included: you type them into the entry component in Part 3, and a name that differs by one letter or by case makes the site answer "Invalid Page" to every payer.
To read a page's API name after creating it: open the page, click the Page Properties icon (the gear in the page's row of the Pages menu, or the properties panel), and read API Name. On an LWR site a custom page's API name ends in __c, for example New_Pay_Order_Request__c; on an Aura site likewise, for example pay_order__c.
| Page (name it as you like) | Component to drag onto it | Properties to set |
|---|---|---|
| 1. Link entry, for example Secure Payment. This is the page the Link URL opens | REDA Pay - New Pay Order (v2) (classic: NewPayOrder) | Is Portal ticked · Portal Record Identifier User-Contact · Portal Payment Page = the API name of page 2 · Portal Success Page = page 3 · Portal Error Page = page 4 · Portal Return URL = where Cancel goes, for example / (the site home) or your website · Allow Transfer Type - Disbursement unticked (a link is always a receipt) · keep Allow Pay Method Type - Card and Bank Account as the account allows. Every other setting can stay at its default: a link brings its own amount, fee choice and method restrictions |
| 2. Payment page, for example New Pay Order Request | REDA Pay - Pay Order Request (v2) (classic: NewPayOrderRequest) | None required. On v2 you may set Brand Colour, Text Colour, Background Colour and Font Family — see Brand the payment screen |
| 3. Success page, for example Pay Order Success | REDA Pay - Pay Order Result (v2) (classic: NewPayOrderResult) | Success Page ticked (classic: Is Success). Add your own text around it: thank you, what happens next, your contact details |
| 4. Error page, for example Pay Order Failure | REDA Pay - Pay Order Result (v2) (classic: NewPayOrderResult) | Success Page unticked. Add a line telling the payer to try another card or account, or to call you |
To place a component: open the Components panel (the icon on the left), type REDA Pay in its search box, and drag the component into the page's content region. Click the component once it is on the page to open its properties on the right.
If vendors or owners will enter bank details through a link (see Request bank details from a vendor), add a second set of four pages with REDA Pay - New Pay Method (v2) (settings Portal Method Input Page, Portal Success Page, Portal Error Page, Portal Return URL), Pay Method Request (v2) and Pay Method Result (v2) (classic: NewPayMethod, NewPayMethodRequest, NewPayMethodResult).
The entry page carries the whole configuration. The three page names must be API names, exactly as Builder shows them.
Part 3 — Check the page names against the entry component
Open each of pages 2, 3 and 4, read its API Name in the page properties, and compare it character by character with what you typed into the entry component's Portal Payment Page, Portal Success Page and Portal Error Page. A worked example from a site where the pages were created with capitalised names:
| Page | API Name shown by Builder | What to type in the entry component |
|---|---|---|
| New Pay Order Request | New_Pay_Order_Request__c | Portal Payment Page = New_Pay_Order_Request__c |
| Pay Order Success | Pay_Order_Success__c | Portal Success Page = Pay_Order_Success__c |
| Pay Order Failure | Pay_Order_Failure__c | Portal Error Page = Pay_Order_Failure__c |
Typing new_pay_order_request__c for a page whose API name is New_Pay_Order_Request__c sends every payer to the site's error page with "Invalid Page", although the page itself opens fine by its address. This was the cause of a failed link on a real site, so check it now rather than after the first customer calls.
Part 4 — Make the pages public
- In Builder, click Settings (the gear on the left) → General. Under Public Access, choose Guest users can see and interact with the site without logging in.
- For each of the four pages, open its page properties and set Page Access to Public. Other pages of the site keep their own access level: making these four public does not open the rest.
Part 5 — Let guests use the User Interface API
The review summary that the payer confirms reads the order's number and amounts through Salesforce's User Interface API. On a public site this is switched off for guests by default, and the summary then shows its labels with blank values. Switch it on:
- In Setup → Digital Experiences → All Sites, click Workspaces next to the site.
- Open Administration → Preferences.
- Tick Allow guest users to access public APIs and click Save.
Without this preference the guest's review summary shows the labels and no values. Verified on a live site.
Part 6 — The guest user: permission set and Apex access
Every site has a guest user, the shared identity Salesforce uses for every visitor who is not logged in, and a guest profile that user belongs to. Whatever the guest user can do, any visitor can do, so the access is deliberately narrow. The full detail, with the profile alternative and the complete table of what is granted, is in Payment-link guest access: permissions and sharing. The short version:
- In Builder → Settings → General, under Guest User Profile, click the profile's name. The guest profile opens in Setup.
- On the profile, click View Users (or Assigned Users): the one user listed is the site's guest user. Click it.
- On the guest user, scroll to Permission Set Assignments → Edit Assignments, move REDA Pay - Public Site User to Enabled Permission Sets, and Save. The set carries the objects, fields and Apex classes the screens need — for v1 and v2 — and REDA Pay keeps it current on upgrade.
If your organisation does not assign permission sets to guest users, the same access can be put on the guest profile instead; the exact objects, fields, classes and page are listed in the guest-access article. Note that for v2 the guest profile then needs the classes rpay.PayloadV2SecureCapture and rpay.PayloadSecureFieldsController and the Visualforce page rpay.PayloadSecureFields as well as the classic rpay.NewPayOrderController and rpay.NewPayMethodController.
Part 7 — The four guest sharing rules
A permission set says what kind of record the guest may read; sharing rules say which records. REDA Pay's records are private to external users, so without these rules every link fails with "Invalid request: Bad request Parameters." Create them in Setup → Sharing Settings: scroll to the object's Sharing Rules list and click New.
| Object | Rule Type | Criteria | Include records owned by high-volume users | Share with | Access |
|---|---|---|---|---|---|
| Pay Order | Guest user access, based on criteria | Has Active Link equals True | Ticked | The site's guest user | Read Only |
| Pay Customer | Guest user access, based on criteria | Order Link Expiration Date Time not equal to (leave the value empty) | Ticked | The site's guest user | Read Only |
| Pay Profile | Guest user access, based on criteria | Is Active equals True | Not needed | The site's guest user | Read Only |
| Processing Account | Guest user access, based on criteria | Is Active equals True | Not needed | The site's guest user | Read Only |
Why the checkbox matters. When a customer pays in your portal with a Customer Community (high-volume) licence, the Pay Customer record is owned by that portal user. Users with that licence cannot hold a role, and a sharing rule reaches their records only if Include records owned by high-volume users is ticked. Without it, a payment link sent to such a customer shows "Invalid request: Bad request Parameters." while links to other customers work. The checkbox can only be set when the rule is created. If an existing rule lacks it, delete the rule and create it again with the box ticked.
The Pay Customer rule. The ticked checkbox is what lets a link reach a customer who also pays in your portal.
Fee Setups and Pay Transactions need no rule: they follow their Processing Account and Pay Order. REDA Pay turns Has Active Link off when the order is paid or revoked, and about a minute after the link expires, so an order drops out of the guest's view by itself.
Part 8 — Connect the processing account
Open the REDA Pay app → Processing Accounts → each account that will issue links → Edit:
- Link Site Public URL: the full address of the link entry page (page 1), for example
https://yourcompany.my.site.com/pay/secure-payment. Read it from the browser's address bar with the published page open, not from Builder. Not the payment page, not the site home. - Link Expiration (Minutes): how long a link lives, counted from the moment the order is created. Fill it in: a link created while it is blank is never active and shows "Invalid request" at once.
- Optionally Payment Session Duration (Minutes) and Enforce Geolocation for Link and Guest — see Controls: geolocation, session and link expiry.
Part 9 — Publish and test as an anonymous payer
- In Builder, click Publish, confirm, and wait for the email that says the site is published. An LWR site serves only its published copy: a change in Builder is invisible to payers until you publish. If two publishes are started together one may fail with a generic error; publish one site at a time.
- Create a test link for a demo customer — Create and send a payment link.
- Copy the order's Link URL and open it in a private browser window, where you are not logged in to Salesforce. The link entry page hands over to the payment page: your logo and header, the method tiles or the secure form, the amount locked, the notes shown. Try it at phone width too.
- Choose a method and click Pay: the review summary shows the order number and the amounts. Click Cancel without paying, then revoke the test order — Revoke a payment link.
- Open the same address with one character removed: "Invalid request: Bad request Parameters." proves a guest reaches nothing but a live link.
Symptoms and what is missing
| What the payer sees | Usually missing | Fix |
|---|---|---|
| A login page | Public access on the site or the page | Part 4 |
| "Invalid request: Bad request Parameters." on every link | The Pay Order or Pay Customer guest rule; or the address was altered when copied | Part 7; resend the exact Link URL |
| "Invalid request: Bad request Parameters." only for customers who also pay in your portal | The checkbox Include records owned by high-volume users on the Pay Order and Pay Customer rules | Recreate those two rules with the box ticked |
| The site's error page, "Invalid Page", right after the entry page | A page name in the entry component that is not the page's API name, letter case included | Part 3 |
| An access error on the page, or an empty page | The guest user's permission set, or the Apex classes and page on the guest profile | Part 6 |
| The review summary shows labels but no order number or amounts | Allow guest users to access public APIs | Part 5 |
| "This page needs a Pay Profile on Payload API v2." | The classic components on a page that serves a v2 profile, or the v2 components for a v1 profile | Match the components to the profile's version — Choose the Payload API version |
| "The secure payment form could not load. If you use an ad or content blocker, allow payload.com." | A browser extension on the payer's device, or a site that was not republished after a REDA Pay upgrade | Ask the payer to allow payload.com; publish the site again |
| The page opens but shows no logo, branding or processing account | The Pay Profile or Processing Account guest rule | Part 7 |
| "Invalid request" immediately, and the order reads Link - Inactive | Link Expiration (Minutes) on the processing account | Part 8, then create a new link |
| The old page, or a change you made in Builder is not there | Publishing | Part 9 |
Mistakes to avoid
| Mistake | What happens | Fix |
|---|---|---|
| Typing page labels instead of API names in the entry component | "Invalid Page" | Copy the API Name from the page properties |
| Creating the guest rules without the portal-owned-records checkbox | Links fail for customers who pay in your portal | Delete and recreate the Pay Order and Pay Customer rules with the box ticked |
| Link Site Public URL pointing at the payment page or the site home | The screen cannot start | Point it at the link entry page, the one holding New Pay Order (v2) |
| Placing the classic components on an LWR site | They are not offered, or the page stays empty | Use the v2 components with a v2 profile |
| Giving the guest user REDA Pay - Community User | Anonymous visitors get Edit on Pay Customers and Pay Methods | Use REDA Pay - Public Site User |
| Testing while logged in to Salesforce | Your own session hides missing guest access | Test in a private window |
| Forgetting to publish after a REDA Pay upgrade | The site keeps running the old screen code; the secure form or the summary misbehaves | Publish the site after every REDA Pay upgrade |
FAQ
Yes: login-required pages for customers and public pages for links can live in one site. Keep the components on separate pages, because the guest and the logged-in flows need different settings, and set up both the guest access described here and the portal access.
The guest can read only orders with an active link and the customers behind them, can create a method and a transaction for that order, and nothing else. The order identifier in the address is encrypted with your org's key, and on v2 the card and bank numbers are typed into Payload's own form.
Each site has its own. Assign the permission set and create the sharing rules for the guest user of the site that hosts the link pages, not for the guest user of your webhook site or another portal.
Yes, for every site that hosts the v2 components. An LWR site keeps serving the previously published copy of the components until it is published again.
Where to go next
- Payment-link guest access: permissions and sharing — every grant in detail, with the profile alternative.
- Create and send a payment link — your first link.
- What the customer sees on a payment link
- Payment link troubleshooting