Package DE_EPAGES::Payment::API::TLE::PaymentHandler
Implements TLE functions for payments.
Functions
CAN_BE_DEFAULT_PAYMENT
check if the paymentmethod can be used as default payment
Syntax |
CAN_BE_DEFAULT_PAYMENT( #Object ); |
Input |
|
Return |
|
CanUsePayment
Calls canAddToBasket of #PaymentMethod to determine if #PaymentMethod can be added to #Container.
Syntax |
#CanUsePayment(#PaymentMethod, #Container) |
Example |
#LOCAL("UsePayment", #CanUsePayment(#PaymentMethod.Object, #LineItemContainer.Object)) |
Input |
|
Return |
|
DISCOUNT
Returns the discount or fee of a payment method for a given currency.
Syntax |
#DISCOUNT(#PaymentMethod, #Currency) |
Example |
#LOCAL("CurrencyID", #INPUT.Currency) #LOCAL("Discount", #DISCOUNT(#PaymentMethod,#CurrencyID)) #IF(#DEFINED(#Discount)) #Discount[money] #ENDIF #ENDLOCAL #ENDLOCAL |
Input |
|
PRICELIMIT
Returns the price limit of a payment method for a given currency and tax model.
Syntax |
#PRICELIMIT(#Type, #PaymentMethod, #Currency) |
Example |
#LOCAL("CurrencyID", #INPUT.Currency) #LOCAL("ListPrice", #PRICELIMIT(#Type, #PaymentMethod)) #IF(#DEFINED(#ListPrice)) #ListPrice[money] #ENDIF #ENDLOCAL #ENDLOCAL |
Input |
|