Newer Version Available
Configuring Salesforce Billing to Read Your Mapping Metadata
After you’ve set up your mapping metadata, configure your payment gateway adapter
Apex class to read the gateway status and assign it to TransactionResult.
First, define a GatewayStatusType enum.
Next, add code that reads your GatewayStatusMapping metadata and sets the correct gateway status in your TransactionResult object. Here’s one way you can configure it.