Newer Version Available

This content describes an older version of this product. View Latest

Get Started With Gateway API

Salesforce Billing can integrate with payment gateways that process credit card and ACH transactions. While we provide several default integration options, you can also use our payment gateway API to support custom integrations.

Overview

Salesforce Billing provides end-to-end support for tokenization, charge and refund features. We also support the following payment features through API.
  • Tokenization
  • Void Token
  • Authorization
  • Capture
  • Charge
  • Get Payment Status
  • Void
  • Refund
  • Get Refund Status
  • Void Refund
  • Non-Referred Refund
All protocol and API methods are supported through REST and SOAP.

The Salesforce Billing package comes with gateway support for CyberSource, AuthorizeDotNet, PayFlowPro, and Payeezy. However, developers can also build custom integrations to support other gateways. The Salesforce Billing payment gateway object defines the type of gateway that Salesforce Billing uses to process transactions. You can associate a payment gateway with an account so that all the account's transactions process through your chosen gateway. You can also override payment gateways on the invoice.

Mapping

You can map the GatewayStatus field to the gateway's return codes using a custom metadata type. The gateway requires the following artefacts to create such an entity.
  • objects/GatewayStatusMapping__mdt
  • layouts/GatewayStatusMapping__mdt layout
  • CustomMetadata/.*md files - one for each mapping
  • populateGatewayStatus() will perform a SOQL query on GatewayStatusMapping__mdt to get the GatewayStatus enum to populate in the returned TransactionResult.