Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

BaseRequest Class

BaseRequest is extended by all the request classes.

Namespace

CommercePayments

BaseRequest Methods

The following are methods for BaseRequest.

BaseRequest(AdditionalData, IdempotencyKey)

Used for testing.

Signature

global Void BaseRequest(String AdditionalData, Map<String, String> IdempotencyKey)

Parameters

  • AdditionalData: Type: String Contains additional data that may be required for a payment request. The additionalData object consists of key-value pairs. You can retrieve the additionalData object from the request object: Map<String, String> additionalData=request.additionalData
  • IdempotencyKey: Type: Map<String, String> Unique value that's generated by a client and sent to the server in the request. The server stores the value and uses the it to keep track of the request status.

Return Value

Type: Void