Setup & Configuration
1. Confido Settings (Custom Setting)
Settings__c — Hierarchy Custom Setting. Configure at Setup → Custom Settings → Confido Settings → Manage.
2. Remote Site Settings
Pre-configured; both active by default:- production →
https://api.gravity-legal.com - sandbox →
https://api.sandbox.gravity-legal.com
3. Webhook Configuration
Point your Confido webhook to:X-SIGNATURE header using HMAC-SHA512 with your WebhookSecret__c. Must be exposed via a Salesforce Site or Community (public REST resource).
4. Sync Bank Accounts
Bank accounts are managed in Confido, not Salesforce. Sync them before creating payment links using the LWC button or the invocable action.Client__c
Matter__c
PaymentLink__c
Transaction__c (auto-created via webhooks)
BankAccount__c (read-only from Confido)
AggregateLink__c
AggregateLinkPaymentLink__c
Junction object (Master-Detail on both sides), managed automatically.Platform Events
WebhookPayload__e and TransactionPayload__e — used internally for async webhook processing.
Invocable Flow Actions
All available in Flow Builder under Action elements. They create/update both the Salesforce record and the corresponding Confido record.Create Client (ClientCreate)
- Input:
name(String, required) - Returns:
List<Client__c>
Update Client (ClientUpdate)
- Input:
clientId(String, required),name(String, optional) - Returns:
List<Client__c>
Create Matter (MatterCreate)
- Input:
clientId(String, required),name(String, required) - Returns:
List<Matter__c>
Update Matter (MatterUpdate)
- Input:
matterId(String, required),name(String, required) - Returns:
List<Matter__c>
Create Payment Link (PaymentLinkCreate)
- Input:
amount(Decimal, required),bankAccountId(String, required),clientId(String, required),matterId(String, optional),paymentLinkName(String, optional) - Returns:
List<PaymentLink__c>
Update Payment Link (PaymentLinkUpdate)
- Input:
paymentLinkId(String, required),amount(Decimal),bankAccountId(String),clientId(String),matterId(String) — all optional except ID - Returns:
List<PaymentLink__c>
Create Aggregate Link (AggregateLinkCreate)
- Input:
paymentLinkIds(List<String>, required),aggregateLinkName(String, optional) - Returns:
List<AggregateLink__c>
Update Aggregate Link (AggregateLinkUpdate)
- Input:
aggregateLinkId(String, required),paymentLinkIds(List<String>, required — pass empty to delete) - Returns:
List<AggregateLink__c>
Sync Bank Accounts (BankAccountsSync)
- Input: None
- Fetches all bank accounts from Confido and upserts/deletes
BankAccount__crecords to match.
Lightning Web Components
All exposed to App Pages, Home Pages, and Flow Screens.Webhooks & Automatic Transaction Sync
Flow
Supported Events
Note: Payout-type transactions and zero-amount transactions (e.g., trust surcharging) are auto-skipped.
Trigger Sync Behavior
Sync errors are stored in
SyncErrorMessage__c and cleared on the next successful sync.
Quick Start Checklist
- ☐ Install
confido_corepackage - ☐ Set API Token in Custom Settings
- ☐ Set Webhook Secret in Custom Settings
- ☐ Check/uncheck Production Environment
- ☐ Verify Remote Site Settings are active
- ☐ Configure webhook URL in Confido
- ☐ Expose
/webhookendpoint via SF Site or Experience Cloud - ☐ Run Sync Bank Accounts
- ☐ Create first Client, Matter, and Payment Link
- ☐ Verify transactions flow in via webhooks
Dependencies
- Nebula Logger — Package uses
Nebula.Loggerfor logging. Install from: https://github.com/jongpie/NebulaLogger