Let customers pay in your portal
If your customers log in to an Experience Cloud site — a resident portal, an owner portal, a client portal — you can put the REDA Pay payment screen inside it. A logged-in customer pays, sets up recurring payments and saves cards and bank accounts, all against their own records, without your team touching a card number. This article builds the pages for both kinds of site, Aura and LWR, sets every component property, publishes, and tests as a customer. The access the customers need (permission set, sharing set, sharing of the setup records) has its own article, Portal access: permissions and sharing for customers; do that one as well.
- An Experience Cloud site exists, with customers as users (Customer Community, Customer Community Login, Customer Community Plus or Partner licences) whose user record is linked to a Contact.
- REDA Pay is connected to Payload, webhooks are set up and the processing account is branded — the portal shows that branding. See Setup roadmap.
- You hold REDA Pay - Admin User and the Salesforce permissions to edit the site and its sharing settings.
- You know whether the Pay Profile is on Payload API v1 or v2 — Choose the Payload API version. It decides which components you place.
How the portal flow works
A portal customer never picks a record: REDA Pay takes the logged-in user's Contact (or Account) as the parent record, finds or creates its Pay Customer, and opens the same screen staff use. The flow crosses four pages you create in Experience Builder:
| Page | Holds (v2 component · classic component) | Purpose |
|---|---|---|
| Payment entry (for example Pay Rent) | REDA Pay - New Pay Order (v2) · NewPayOrder, with Is Portal on | Resolves the customer, asks for the profile and account if several are possible |
| Payment page (for example Pay Order Request) | REDA Pay - Pay Order Request (v2) · NewPayOrderRequest | Saved methods, the card or bank form (on v2, Payload's secure form), the amount and the buttons |
| Success page | REDA Pay - Pay Order Result (v2) · NewPayOrderResult, with Success Page (classic: Is Success) on | "Your order is successfully processed. Order Reference: …" |
| Error page | REDA Pay - Pay Order Result (v2) · NewPayOrderResult, with Success Page off | The error and its reason |
The same four, with New Pay Method (v2), Pay Method Request (v2) and Pay Method Result (v2) (classic: NewPayMethod, NewPayMethodRequest, NewPayMethodResult), let customers save a method without paying.
| Site kind | How to recognise it | Components | Pay Profile version |
|---|---|---|---|
| Aura | Templates such as Customer Service, Customer Account Portal, Build Your Own (Aura); the Components panel lists the classic REDA Pay components under Custom Components | Classic or v2 | v1 with classic, v2 with v2 |
| LWR | Templates such as Build Your Own (LWR), Enhanced LWR; the classic components are not offered | v2 only | v2 |
The entry page. A single active profile skips this step.
The classic payment screen inside an Aura portal. Customers see their own saved methods. On v2 the same page shows the saved methods as tiles and opens Payload's secure form for a new card or account.
Part 1 — Give portal users access
Portal access has four parts. Each is set up step by step, for both kinds of portal licence, in Portal access: permissions and sharing for customers; in short:
- Object, class and page access. Assign REDA Pay - Community User to the portal users, or give the portal profile the same settings. It grants create and edit on Pay Customers and Pay Methods, read on Pay Orders, Pay Transactions, Pay Profiles, Processing Accounts and Fee Setups, the Apex classes behind the classic and the v2 screens, the Visualforce page that carries the secure form, and read access to the REDA Pay Process Config and REDA Pay Setup custom metadata types.
- Sharing set. Portal users see only records shared with them. A sharing set on Pay Order, Pay Customer and Pay Method, each matched User: Contact to the object's Contact field with Read/Write, gives each customer their own records: Setup → Digital Experiences → Settings → Sharing Sets.
- Pay Profiles and Processing Accounts. Customers must read the active ones. For role-based licences (Customer Community Plus, Partner), two criteria-based sharing rules, Is Active equals True, shared with All Customer Portal Users, Read Only. For high-volume licences (Customer Community, Customer Community Login), which sharing rules cannot reach, set the two objects' Default External Access to Public Read Only. Fee Setups follow their Processing Account.
- Site membership. The portal profile must be a member of the site.
The sharing set is what makes "my payments" mean the logged-in customer's payments.
Part 2 — Build the pages
Open Setup → Digital Experiences → All Sites → Builder next to the site. Then, for each page:
- Open the Pages menu (the page name at the top left) → New Page → Standard Page → Blank. Name it, for example Pay Rent. Salesforce derives the page's API Name from the name; read it in the page's properties (the gear next to the page in the Pages menu, or the properties panel) and write it down exactly, letter case included. On an LWR site a custom page's API name ends in
__c, for examplepay_order_request__c. - Open the Components panel, type REDA Pay in its search box, and drag the component for that page into the content region.
- Click the component on the page to open its properties on the right and set them as in the table.
| Page | Component | Properties |
|---|---|---|
| 1. Payment entry (Pay Rent) | REDA Pay - New Pay Order (v2) · classic NewPayOrder | Is Portal ticked · Portal Record Identifier User-Contact (or User-Account if payments belong to the customer's company) · 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 / for the site home · narrow the screen for this audience: untick Allow Pay Method Type - Card if cards are not wanted, untick Enable Order Link (links are a staff tool), keep Enable Scheduling Order for autopay, untick Allow Transfer Type - Disbursement. See Component settings reference |
| 2. Payment page (Pay Order Request) | REDA Pay - Pay Order Request (v2) · classic NewPayOrderRequest | None required; on v2 optionally Brand Colour, Text Colour, Background Colour, Font Family |
| 3. Success page (Payment Success) | REDA Pay - Pay Order Result (v2) · classic NewPayOrderResult | Success Page ticked. Add your own text: "Thank you", what happens next, a link back home |
| 4. Error page (Payment Error) | REDA Pay - Pay Order Result (v2) · classic NewPayOrderResult | Success Page unticked. Add "Please try another payment method or call us" |
- Repeat 1–3 with New Pay Method (v2) (setting Portal Method Input Page, Portal Success Page, Portal Error Page, Portal Return URL), Pay Method Request (v2) and Pay Method Result (v2) if customers should save methods without paying.
- Add the entry pages to the site's Navigation Menu (for example Pay Rent and Payment Methods). The payment page, the success page and the error page are reached by REDA Pay, not from the menu.
- Page access: leave the pages at Requires Login (the default on a login-required site). Only the public payment-link pages use guest access — see Set up the public payment-link site.
- Click Publish. An LWR site serves only its published copy.
Part 3 — Check the page names
Open pages 2, 3 and 4, read each one's API Name in the page properties, and compare it with what you typed into the entry component. The names must match character for character, letter case included; otherwise the site shows "Invalid Page" after the first step. A worked example from a resident portal:
| Page | API Name | Entry component property |
|---|---|---|
| Pay Order Request | pay_order_request__c | Portal Payment Page = pay_order_request__c |
| Payment Success | payment_success__c | Portal Success Page = payment_success__c |
| Payment Error | payment_error__c | Portal Error Page = payment_error__c |
The entry component on an LWR site. The three page names are the pages' API names.
Part 4 — Test as a customer
Open a test customer's Contact, use Log in to Experience as User, and walk the flow: choose a profile and account if asked, see your saved methods, enter an amount, press Pay, read the summary, cancel. On v2 you will see the secure form for a new card or account and the progress messages. Then test on a phone-sized window: the tiles and the payment panel stack and nothing scrolls sideways.
The same page on a phone.
Check as the customer, not as an administrator: an administrator sees records a customer cannot, and a missing sharing rule only shows up for a real portal user.
After every REDA Pay upgrade: publish the site again
An LWR site serves the copy of the v2 components that was published last. After a REDA Pay upgrade the new code is in the org, but the site keeps running the old one until you publish it again: open the site in Builder, compare its unpublished changes (publishing makes them live too), and click Publish. Publish sites one at a time.
Worked example
A resident portal on an LWR site: residents pay rent and set up autopay by card or bank account; no payment links. The Pay Profile is on v2.
| Where | Setting |
|---|---|
| Permission set | REDA Pay - Community User to every resident |
| Sharing set | Pay Order, Pay Customer, Pay Method on Contact, Read/Write, for the resident profile |
| Pay Profiles and Processing Accounts | Default External Access Public Read Only (residents hold Customer Community licences) |
| New Pay Order (v2) on the Pay Rent page | Is Portal on; User-Contact; Enable Scheduling Order on; Enable Order Link off; card and bank on; receipts only; Portal Payment Page pay_order_request__c; Portal Success Page payment_success__c; Portal Error Page payment_error__c; Portal Return URL / |
| Navigation | Pay Rent and Payment Methods items |
Mistakes to avoid
| Mistake | What the customer sees | Fix |
|---|---|---|
| Is Portal left off | The flow breaks after the first step | Tick it on both entry components |
| No sharing set | "Bad Request. Parent record not found." or empty screens | Create the sharing set |
| No access to Pay Profile / Processing Account | "Select Pay Profile" is empty, or no account | Sharing rules, or default external access for high-volume licences |
| Page names typed as labels, or in the wrong case | "Invalid Page" | Use the API names from the page properties |
| Classic components on an LWR site, or classic components with a v2 profile | Nothing, or "This page needs a Pay Profile on Payload API v2." | Use the v2 components with a v2 profile |
| Portal user not linked to a Contact | No parent record | Portal users must have a Contact (or an Account with User-Account) |
| Not publishing after a REDA Pay upgrade | The old screens; the secure form may not load | Publish the site |
| Testing as an administrator only | Everything works for you, not for customers | Log in as a portal user |
FAQ
No. The payment is always for the logged-in user's Contact (or Account). Use payment links for third parties.
Add Pay Order and Pay Transaction record pages or lists to the site; the sharing set gives them access to their own.
No. Limit the page to a profile with Limit Profile Selection if you have several.
Yes. Only the v2 components run on LWR pages, and they need a Pay Profile on v2 — see Choose the Payload API version.