CaptureRequest Class

Represents a capture request. This class extends the BaseRequest class and inherits all its methods.

CommercePayments

The CaptureRequest class’s buildCaptureRequest method creates a CaptureRequest object to store payment information, such as value and currency, as JSON strings.

Builds a CaptureRequest object for a multicurrency org.

The following are constructors for CaptureRequest.

This constructor is intended for test usage and throws an exception if used outside of the Apex test context.

  • amount:

    Type: Double

    The amount to be debited or captured.

  • authorizationId:

    Type: String

    Represents

    a payment authorization record.

The following are properties for CaptureRequest.

Account ID value. References an account record.

Type: String

Amount of currency that needs to be captured.

Type: Double

ID value that references a PaymentAuthorization.

Type: String