Skip to main content

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:
  • productionhttps://api.gravity-legal.com
  • sandboxhttps://api.sandbox.gravity-legal.com

3. Webhook Configuration

Point your Confido webhook to:
The endpoint verifies the 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

Transaction__c (auto-created via webhooks)

BankAccount__c (read-only from Confido)

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>
  • Input: amount (Decimal, required), bankAccountId (String, required), clientId (String, required), matterId (String, optional), paymentLinkName (String, optional)
  • Returns: List<PaymentLink__c>
  • Input: paymentLinkId (String, required), amount (Decimal), bankAccountId (String), clientId (String), matterId (String) — all optional except ID
  • Returns: List<PaymentLink__c>
  • Input: paymentLinkIds (List<String>, required), aggregateLinkName (String, optional)
  • Returns: List<AggregateLink__c>
  • 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__c records 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

  1. ☐ Install confido_core package
  2. ☐ Set API Token in Custom Settings
  3. ☐ Set Webhook Secret in Custom Settings
  4. ☐ Check/uncheck Production Environment
  5. ☐ Verify Remote Site Settings are active
  6. ☐ Configure webhook URL in Confido
  7. ☐ Expose /webhook endpoint via SF Site or Experience Cloud
  8. ☐ Run Sync Bank Accounts
  9. ☐ Create first Client, Matter, and Payment Link
  10. ☐ Verify transactions flow in via webhooks

Dependencies