ePages 7.47.0 - DE_EPAGES/Klarna/UI/BasketOrder.pm

Package DE_EPAGES::Klarna::UI::BasketOrder

Basket and order UI methods.

Base
DE_EPAGES::Presentation::UI::Object

Functions

ActivateInvoiceAdvancedIntregration
ActivateInvoiceStandardIntegration
ActivateKlarnaInvoice
AddTransaction
CancelInvoiceAdvancedIntegration
CancelInvoiceStandardIntegration
CancelKlarnaInvoice
DoKlarnaOrderStatusCheck
ReserveAmount
SendDataToKlarna
UpdateKlarnaReservation
ViewPaymentForm

ActivateInvoiceAdvancedIntregration

do the webservice call "activate Invoice" for advanced integration

Syntax
ActivateInvoiceAdvancedIntregration( $LineItemContainer );
Input
$LineItemContainer (object)
LineItemContainer
Return
$hResult (refhash)
hash with the result of the webservice call

ActivateInvoiceStandardIntegration

do the webservice call "activate Invoice" for Standard integration

Syntax
ActivateInvoiceStandardIntegration( $LineItemContainer );
Input
$LineItemContainer (object)
LineItemContainer
Return
$hResult (refhash)
hash with the result of the webservice call

ActivateKlarnaInvoice

Description

Syntax
ActivateKlarnaInvoice( $Servlet );
Input
$Servlet (object)
epages servlet
Return
$Servlet (undef)
Empty return

AddTransaction

call addTransaction of the standard Integration

Syntax
AddTransaction( $hParams );
Input
$hParams (refhash)
Params needed for call
Return
$hResponse (refhash)
Hash with response

CancelInvoiceAdvancedIntegration

Do the webservice call "cancel reservation" for advanced integration

Syntax
CancelInvoiceAdvancedIntegration( $LineItemPaymentKlarna );
Input
$LineItemPaymentKlarna (object)
LineItemContainer
Return
$hResult (refhash)
hash with the result of the webservice call

CancelInvoiceStandardIntegration

Do the webservice call "cancel Invoice" for Standard integration

Syntax
CancelInvoiceStandardIntegration( $LineItemContainer );
Input
$LineItemContainer (object)
LineItemContainer
Return
$hResult (refhash)
hash with the result of the webservice call

CancelKlarnaInvoice

Function that cancel a Klarna reservation

Syntax
CancelKlarnaInvoice( $Servlet );
Input
$Servlet (object)
epages servlet
Return
$Servlet (object)
Servlet object

DoKlarnaOrderStatusCheck

Request order status updates from Klarna and update the order flags accordingly. For use in the MBO

Syntax
   my $result = $self->DoKlarnaOrderStatusCheck($Servlet);
Input
$Servlet (object)
Servlet object
Return
$Servlet (undef)
Empty return

ReserveAmount

call reserve Amount of the Advanced Integration

Syntax
ReserveAmount( $hParams );
Input
$hParams (refhash)
Params needed for call
Return
$hResponse (refhash)
Hash with response

SendDataToKlarna

Funtion sends payment data to Klarna.

Syntax
 $self->SendDataToKlarna($Servlet);
Input
$Servlet (object)
current servlet (contains form data)
Return
-

UpdateKlarnaReservation

Trigger the Klarna update reservation webservice

Syntax
UpdateKlarnaReservation( $Servlet );
Input
$Servlet (object)
Servlet object
Return
$Servlet (undef)
Empty return

ViewPaymentForm

View action for payment form page.

Syntax
 $self->ViewPaymentForm($Servlet);
Input
$Servlet (object)
current servlet (contains form data)
Return
-