ePages 6.17.52 - DE_EPAGES/Klarna/API/KlarnaOrderStatus.pm

Package DE_EPAGES::Klarna::API::KlarnaOrderStatus

Klarna order status management

@EXPORT_OK
CheckKlarnaOrderStatus
CheckKlarnaOrderStatusViaScheduler
UpdateOrderStatus

Functions

CheckKlarnaOrderStatusViaScheduler
UpdateOrderStatus

CheckKlarnaOrderStatusViaScheduler

Request order status updates from Klarna and update the order flags accordingly. Does not need a Servlet object. For use with the scheduler

Syntax
   my $result = CheckKlarnaOrderStatusViaScheduler($Order);
Input
$Order (object)
The order to update
Return
$result (hash reference)
result of the operation
- Message Status message
- StatusCode Status code

UpdateOrderStatus

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

Syntax
   my $result = UpdateOrderStatus($Servlet);
Input
$Order (object)
the order to update
$hResponse (hash reference)
the response from Klarna webservices
Return
$hResult (hash reference)
result of the operation
- Message Status message
- StatusCode Status code