YourGatewayNameUtils
YourGatewayNameUtils is a singleton utility class that interacts with an external payment gateway. All user gateway API classes will be different based on your needs. However, we’ve provided a template that you can use to help create your own.
| Required Editions |
|---|
| Available in: All Salesforce Billing Editions |
This code shows an example of how to generate a void token request for CyberSource. The class contains several methods.
- A utility method to construct the void token request payload for CyberSource
- A utility method to validate gateway settings
- A utility to return a map of CyberSource Gateway Return code to a friendly description
- A utility method to pass the XML node and retrieve a map of element to value