Idempotency Guidelines
Idempotency represents the ability of a payment gateway to recognize duplicate requests submitted either in error or maliciously, and then process the duplicate requests accordingly. When working with an idempotent gateway, consider these important guidelines.
AbstractResponse
Contains the normalized response fields from payment gateways that are common to all the other gateway responses. This class can’t be instantiated on its own. This class implements the GatewayResponse class. Other GatewayResponse classes extend this class to inherit common properties.
AuditParamsRequest AuditParamsRequest is used for audit parameters in a transaction request. This is an abstract request class that is extended by the BaseRequest class.
BaseRequest BaseRequest is extended by all the request classes.
CaptureResponse
The payment gateway adapter sends this response for the Capture request type. This class extends AbstractResponse and inherits its methods.
CaptureRequest
Represents a Capture request. This class extends the BaseRequest class and inherits all its methods.
CustomMetadataTypeInfo
Access information about custom metadata. The PaymentGatewayAdapter can send CustomMetadataTypeInfo to transaction requests through the response object’s SalesforceResultCodeInfo.
GatewayErrorResponse
Use to respond with an Error following high-level errors from the PaymentGateway adapter, such as request-forbidden responses, custom validation errors, or expired API tokens.
GatewayResponse Interface
Generic payment gateway response interface. It can be referred, but gateway adapters shouldn’t implement this interface.