Exodus Salesforce Docs
Admin Guide

Payment Gateway Lifecycle

Admin guide for gateway setup, connection testing, successor-backed replacement, token coverage, and historical transaction safety

Use Payment Gateway Connections from the Settings app in QA:

https://exodus--vesper.sandbox.lightning.force.com/lightning/n/Payment_Gateway_Connections

Gateway Principle

Payment gateways are operational identities, not disposable credential rows. Existing payment methods, tokens, transactions, settlement, routes, and reports can point to a gateway. Treat gateway changes as lifecycle work.

Core Records

RecordPurpose
Payment_Gateway__cGateway identity, status, adapter, credentials, environment, and lifecycle.
Payment_Method_Token__cCustomer token coverage for a gateway or vault route.
Item_Payment_Gateway__cItem or route-specific gateway assignment.
Payment_Transaction__cExecution evidence and gateway transaction history.
Processor_Event__cIncoming processor event/webhook evidence.
Settlement_Batch__c and Settlement_Line__cReconciliation and settlement reporting.

Lifecycle States

StateMeaningAdmin behavior
ActiveEligible for new routing and token readiness.New quotes and payment orders can use it if route checks pass.
DeprecatedExisting-token execution may continue while new routing moves away.Use only during migration or retokenization windows.
RemovedNo longer used for execution.Use only after successor migration and associated-record repair are complete.

Gateway status should not be changed casually. A deprecated gateway can still be important for historical transactions and legacy token execution.

Gateway Setup Checklist

  1. Confirm gateway type and adapter class.
  2. Confirm sandbox versus production environment.
  3. Configure Named Credential and External Credential names where required.
  4. Configure API login, public client key, transaction key, signature key, and webhook base URL as applicable.
  5. Confirm support flags for cash, check, manual ACH, wallet, shared vault, and manual payments.
  6. Run connection testing from the gateway UI.
  7. Validate a sandbox payment path before routing real quote/payment traffic.

Relevant Payment_Gateway__c fields include Gateway_Type_Key__c, Adapter_Class__c, Execution_Mode__c, Lifecycle_Status__c, Live_Mode__c, Named_Credential_Name__c, External_Credential_Name__c, Public_Webhook_Base_Url__c, and last connection test fields.

Replacement Flow

Use successor-backed replacement when rotating merchant accounts, gateway IDs, or credential identity.

Do not edit gateway identity in place if historical tokens or transactions still point to it. Keep history readable and move new routing to the successor.

Token Coverage

PaymentTokenCoverageService provides route-level readiness. It can distinguish:

Readiness stateMeaning
ReadySaved method and token can be used for the selected route.
Retokenization requiredA saved method exists but does not have valid successor/gateway coverage.
New payment method requiredCustomer must provide a supported new method.
Gateway unavailableGateway is inactive, deprecated without usable legacy path, removed, or misconfigured.

Sales users should follow the message. Admins should diagnose the gateway, route, token, and item assignment behind the message.

Sandbox Versus Production

Sandbox gateways can use supported test cards. Production gateway mode must not accept sandbox-only test behavior. The payment code has explicit environment checks to prevent mixing sandbox and production gateway assumptions in one transaction path.

For Vesper QA, use Sandbox A and Sandbox B only for test flows. Do not document or share production credentials in the docs site.

Validation After Gateway Changes

Run these checks before calling a gateway change ready:

  1. Connection test succeeds.
  2. Payment Operations Settings still match the intended runtime mode.
  3. Quote readiness shows the expected route state.
  4. Add payment method works in sandbox for Account or Contact.
  5. Payment link checkout works for a Payment Order.
  6. Existing-token behavior is still correct for deprecated gateways.
  7. Refund/void/dispute behavior is still routed correctly where applicable.
  8. Settlement and gateway accounting reports still reconcile.

Last updated on

On this page