Newer Version Available
Configure Response Code Metadata in Your Payment Gateway Package
The fields used to store gateway request and response values vary between payment gateway packages. Let’s look at a few examples from the custom metadata created for the AuthorizeDotNet, CyberSource, and Payeezy packages. In each, we provide a recommended metadata name.
| Package | Metadata Name | API Names | Field Labels |
|---|---|---|---|
| AuthorizeDotNet | adnblng__GatewayStatusMApping__mdt |
|
|
| CyberSource | csblng__GatewayStatusMapping__mdt |
|
|
| Payeezy | pyzblng__GatewayStatusMapping__mdt |
|
|
Example
Example
Some payment gateways return multiple response codes for one gateway transaction. Responses with multiple codes can occur when the gateway processes the transaction successfully but then the customer card provider responds with another value. For example, the AuthorizeDotNet code I00001 indicates that the payment gateway successfully processed a request. However, the card provider can then send a response code of 3, which indicates that the transaction was declined. The provider can also send a response code of 7, which indicates that the credit card expiration date is invalid. Let’s look at metadata samples for processing I00001 - 3 and I00001 - 7 respectively.
In this case, we assign I00001 - 3 to a Salesforce Billing value of Permanent Fail.
In this case, we assign I00001 - 7 to a Salesforce Billing value of Decline.