function

getPaymentTotal

function getPaymentTotal( basePrice: number, conditions: readonly PriceCondition[], values: FormValues, ): number

Calculate the display total with the same finite arithmetic model as Go.

Source packages/plugin-form-builder/src/index.ts:1

@param basePrice
The basePrice value.
@param conditions
The conditions value.
@param values
The values value.
@returns
The declared result.

The trusted Go callback recalculates the authoritative total before commit.

Related types