ePages 6.10 - DE_EPAGES/PaymentTypes/API/Object/PaymentMethodFreeLimit.pm

Package DE_EPAGES::PaymentTypes::API::Object::PaymentMethodFreeLimit

Object interface for payment method that is free above a given limit.

Base
DE_EPAGES::Order::API::Object::ContainerPaymentMethod

Functions

lineItem
price

lineItem

Returns information for creating a new payment line item.

Syntax
$hInfo = $PaymentMethod->lineItem($Container);
Input
$Container (object)
line item container
$hInfo (ref.hash)
payment line item info, keys
  • Discount
  • BasePrice
  • LineItemPrice

see also DE_EPAGES::Order::API::Object::ContainerPaymentMethod::lineItem

price

Returns price of payment without using a lineitemcontainer. Throws an error 'PaymentMethodNoPrice' if there's no price defined for this payment method.

Syntax
my $Price = $PaymentMethod->price($hValues);
Input
$hValues (object)
currency and tax model
Return
$Price (float)
price