Salesforce Billing Developer Guide
Summer '26 (API version 67.0)
Spring '26 (API version 66.0)
Winter '26 (API version 65.0)
Summer '25 (API version 64.0)
Spring '25 (API version 63.0)
Winter '25 (API version 62.0)
Summer '24 (API version 61.0)
Spring '24 (API version 60.0)
Winter '24 (API version 59.0)
Summer '23 (API version 58.0)
Spring '23 (API version 57.0)
Winter '23 (API version 56.0)
Summer '22 (API version 55.0)
Spring '22 (API version 54.0)
Winter '22 (API version 53.0)
Summer '21 (API version 52.0)
Spring '21 (API version 51.0)
Winter '21 (API version 50.0)
Summer '20 (API version 49.0)
Spring '20 (API version 48.0)
Winter '20 (API version 47.0)
Summer '19 (API version 46.0)
Salesforce Billing Standard Objects
Configure Payment Gateways in Salesforce
Creating a PaymentGateway Interface
Creating a PaymentGateways Interface
Creating a PaymentGatewayStatus Interface
Configuring Salesforce Billing to Access Your PaymentGatewayAPI Class
Capture Externally Authorized Payments
Merchant Credential Fields
Required Gateway Classes
Payment Method Handling for Guest Users
Configure a Payment Gateway in Salesforce Billing
REST API for Converting Invoice Lines with Negative Balances
Newer Version Available
Salesforce Billing Payment Gateway Interfaces
A payment gateway package requires three interfaces to communicate with Salesforce
Billing. Each interface contains methods that the user-defined
PaymentGatewayAPI
class implements to process different types of transaction actions.
-
Creating a PaymentGateway Interface
The PaymentGateway interface contains several basic transaction methods that the PaymentGatewayAPI class implements to handle gateway requests. The methods allow PaymentGatewayAPI to create a credit card token, process a payment charge, void a payment, authorize a payment, and refund a payment. -
Creating a PaymentGateways Interface
The PaymentGateways interface uses the processPayments method, which evaluates the payment transaction’s type to perform a payment action. -
Creating a PaymentGatewayStatus Interface
Salesforce Billing implements the PaymentGatewayStatus interface to populate the TransactionResult’s GatewayStatus enum with the value of the return code that the external gateway set in transactionResult.