Newer Version Available
Configuring Salesforce Billing to Access Your PaymentGatewayAPI Class
To integrate with a payment gateway package, Salesforce Billing must know which gateway
package class contains the methods required to process a payment request and convert the
results to data that Salesforce Billing can read. The Salesforce Billing custom setting
Payment Gateway Config defines the class that Salesforce Billing calls from the gateway
package. You must also add code that installs a record of the class in
PaymentGatewayConfig.
First, create your primary gateway package class. For ease of reference, name it after your payment gateway, followed by “API.” The class must implement all three of our payment gateway interfaces. Here’s an example for CyberSource.
Next, add code that lets you install a record of the class in PaymentGatewayConfig. For this
example, we’ve titled our method
insertPaymentGatewayConfigCustomSettings.