REDA One Help Center
EN
Language
English EN Español ES Português PT Italiano coming soon Français FR Deutsch coming soon العربية coming soon
reda.one ↗
Home / REDA Pay / Taking Payments / Add REDA Pay to record pages: the Pay button

Add REDA Pay to record pages: the Pay button

Staff take payments from the records they already work on — a Lead applying for a unit, a Contact paying a deposit, an Account settling an invoice. REDA Pay gives you three ways to open the payment screen from a record page, and you choose per object. Each entry point can pre-set the profile, account, methods and buttons the screen offers, so a leasing team's button and an owner-services button can behave differently.

Before you start
  • The Pay Profile and Processing Account are configured and active — see the Setup roadmap.
  • You hold the Salesforce permission to edit Lightning pages (a System Administrator has it) and REDA Pay - Admin User.
  • Staff who will use the button hold REDA Pay - User.

Choose an entry point

Entry pointWhat it isChoose it when
PayButton componentA button on the record page that opens the payment screen in full page, carrying the record's IdYou want a clear button and may pre-set options through the address it opens
NewPayOrder componentThe payment screen itself, placed on the record page or a tabYou want the screen inline, with its options set in App Builder
A custom button or quick action that opens the screen's addressYour own button, built in Object Manager, pointing at the payment screen's address with parametersYou already manage buttons that way, or need the screen as a quick action

All three open the same screen and the same rules apply. The difference is only where the settings live.

Option 1 — The Pay button

  1. Open a record of the object, for example a Lead, click the gear icon and choose Edit Page. Lightning App Builder opens.
  2. In the Components list, under Custom - Managed, find PayButton and drag it where you want the button — the top of the page, or a tab.
  3. Set its properties:
PropertyEnter
Button LabelWhat staff read, for example Receive Payment
Button URLThe payment screen's address: /lightning/cmp/rpay__NewPayOrder, optionally followed by ? and parameters that fix the profile, account, methods or buttons — see below
Button VariantSalesforce's button style: brand for a blue primary button, neutral for a plain one, and so on
  1. Save, and Activate the page for the org, app or profiles that should see it.

When pressed, the button appends the record's Id to the address (rpay__rid=<Id>) and opens the screen. The record becomes the payment's parent record: REDA Pay finds or creates its Pay Customer and links the Pay Order to it.

A Lead record page with a "Receive Payment" button at the top, as rendered by the PayButton component
A Lead record page with a "Receive Payment" button at the top, as rendered by the PayButton component

A Pay button on a Lead. One press opens the payment screen for that Lead.

Pre-setting the screen through the address

Add parameters to Button URL to decide what the screen offers. Examples:

Button URLEffect
/lightning/cmp/rpay__NewPayOrderEverything the user, customer and account allow
/lightning/cmp/rpay__NewPayOrder?rpay__ttype=rcptReceipts only — no disbursement question
/lightning/cmp/rpay__NewPayOrder?rpay__ttype=rcpt&rpay__bank=0Receipts by card only
/lightning/cmp/rpay__NewPayOrder?rpay__ttype=rcpt&rpay__nosch=1&rpay__nolnk=1Pay now only — no Schedule or Create Link buttons
/lightning/cmp/rpay__NewPayOrder?rpay__ppid=<Pay Profile Id>&rpay__pid=<Processing Account Id>Skip the profile and account questions
/lightning/cmp/rpay__NewPayOrder?rpay__amount=250&rpay__fixamt=1&rpay__cnotes=Application%20feeA fixed $250 with a note — an application-fee button

The full list is in URL parameters reference. Values in the address win over the component's own settings.

Option 2 — The payment screen on the page

  1. In Lightning App Builder for the record page, drag NewPayOrder (under Custom - Managed) onto the page — usually into its own tab such as Payments, because the screen needs the width.
  2. Set its properties in the right-hand panel: which transfer types, methods and buttons to allow, whether to limit the profiles and accounts by code, EMD and fee switches, and up to four attributes to stamp on the order. Every property is explained in Component settings reference. Leave Is Portal unticked on internal pages.
  3. Save and Activate.

The screen opens as soon as the tab is shown and works out the profile, customer and account from the record.

Option 3 — A custom button or quick action

If your team prefers Object Manager buttons:

  1. Setup → Object Manager → Lead → Buttons, Links, and Actions → New Button or Link.
  2. Choose Detail Page Button, behaviour Display in existing window, content source URL, and the formula /lightning/cmp/rpay__NewPayOrder?rpay__rid={!Lead.Id} plus any parameters.
  3. Add the button to the page layout.

A quick action of type Lightning Component can host NewPayOrder as well; it opens the first step in a dialog, and the payment screen then opens in full page.

Which objects to cover

ObjectTypical useSuggested address
LeadApplication fees, holding depositsReceipts only
ContactRent, deposits, fees from a residentReceipts only
AccountInvoices from a company; payouts to a vendor or ownerReceipts and disbursements; the user's own switch decides which they may do
OpportunityDeposits on a saleAdd rpay__oppid={!Opportunity.Id} together with rpay__rid of the Contact or Account, so the order links to the opportunity

The parent record must be an Account, Contact or Lead — the objects REDA Pay knows how to turn into a Pay Customer. For an Opportunity, the button passes the related Contact or Account as the parent and the Opportunity as a link.

Mistakes to avoid

MistakeWhat happensFix
Button URL without the leading slashThe address does not resolveStart with /lightning/cmp/
Looking for the component under its product nameApp Builder lists the managed components by their names: PayButton, NewPayOrderLook under Custom - Managed
Placing the Pay button on an object other than Account, Contact or Lead"Bad Request. Parent record not found." or "Transaction not allowed for SObject: …"Pass an Account, Contact or Lead Id with rpay__rid
Page activated for the wrong appStaff do not see the buttonCheck the activation (Org Default, App Default or App and Profile)
Staff without REDA Pay - UserThe screen fails to loadAssign the permission set

FAQ

Yes — for example Collect Application Fee with a fixed amount and Receive Payment without. Each is its own Pay Button component with its own address.

Test it on the devices your team uses before relying on it; the payment screen is designed for a browser window.

No. The screen's labels are fixed; the button label you set applies only to the Pay button on the page.

Where to go next