function

GetPaymentTotal

func GetPaymentTotal( basePrice float64, conditions []PriceCondition, values map[string]store.Value, ) (float64, error)

Apply matching arithmetic conditions in order with finite-number checks.

Source plugins/formbuilder/payment.go:78

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

Related types

  • PriceCondition

    One conditional arithmetic adjustment to a payment base price.

  • Value

    A scalar, object, list, or populated document value.