EFL
EflClient

acceptCalculation

Accepts a previously calculated offer for the given transaction.

acceptCalculation() confirms a selected calculation and variant for a transaction. It wraps CalculationApiClient::acceptCalculation().

All methods on EflClient may throw:

Method signature

public function acceptCalculation(
    string $transactionId,
    int $calculationId,
    int $calculationVariantId,
    ?bool $basketCalculation,
    string $bearerToken
): void

Parameters

NameTypeRequiredDescription
transactionIdstringYesIdentifier of the transaction.
calculationIdintYesIdentifier of the calculation to be accepted.
calculationVariantIdintYesIdentifier of the calculation variant to be accepted.
basketCalculationbool|nullNoWhether basket calculation is used.
bearerTokenstringYesBearer token.

Return value

  • Type: void – errors are reported via exceptions.