function

GetPaymentTotal

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

Arguments

ArgumentTypeDescription
basePricefloat64The basePrice value.
conditions[]PriceConditionThe conditions value.
valuesmap[string]store.ValueThe values value.

Returns

The declared result.

(float64, error)

Full signature

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

Source plugins/formbuilder/payment.go:79

Related types

  • PriceCondition

    One conditional arithmetic adjustment to a payment base price.

  • Value

    An immutable scalar, object, list, or populated document value.