Package DE_EPAGES::Klarna::API::KlarnaCalc
This class implements calculation functions for Klarna
Base |
- |
@EXPORT_OK |
Functions
CalcMonthlyAccountCost
Function calculates monthly cost. Formulas are copied from php package of Klarna (monthly_cost function). To be used with Klarna Account
Syntax |
my $result = CalcMonthlyAccountCost($hParams) |
Input |
|
Return |
|
CalcMonthlyFinancingCost
Function calculates periodic cost. Formulas are copied from php package of Klarna (periodic_cost function). To be used with Klarna Financing
Syntax |
my $result = CalcMonthlyFinancingCost($hParams) |
Input |
|
Return |
|
CalcTotalFinancingPurchaseCost
Function calculates total credit purchase cost. Formulas are copied from php package of Klarna (total_credit_purchase_cost function).
Syntax |
my $result = CalcTotalFinancingPurchaseCost($hParams) |
Input |
|
Return |
|
Gross2net
Converts a price from gross to net if necessary
Syntax |
Gross2net($PaymentMethod, $GrossValue); |
Input |
|
Return |
|
Net2gross
Converts a price from net to gross if necessary
Syntax |
Net2gross($PaymentMethod, $NetValue); |
Input |
|
Return |
|