Package DE_EPAGES::POSTPAY::API::Payment
Payment functions for POSTPAY.
@EXPORT_OK |
Functions
- CheckoutRequest
- CheckoutRequestDetails
- GetPOSTPAYAddress
- HandleQueryRequestResponse
- ReportCancellation
- ReportConsignment
- ReportOrderReturns
- ReportTrackingId
- SendPOSTPAYRequest
- SetCancellationIDOrConsignedQuantity
- SetConsignmentID
- SetDispatchedStatus
- SetTrackingID
- _HandleNotificationResponse
- _HandleSubmitCartResponse
CheckoutRequest
calls SetExpressCheckout
Syntax |
CheckoutRequest($LineItem, \%Params); |
Input |
|
Return |
|
CheckoutRequestDetails
sends a request to POSTPAY to get order details
Syntax |
CheckoutRequestDetails($LineItem, \%Params); |
Input |
|
Return |
|
GetPOSTPAYAddress
create a Address under the customer for the given postpay address if there doesn't exists an address with this address information
Syntax |
GetPOSTPAYAddress($Customer,$hBillingAddress,$AddressName); |
Input |
|
Return |
|
HandleQueryRequestResponse
handles response for all requests, dependent from request return value which is set
Syntax |
_HandleQueryRequestResponse($hResult,$Shop); |
Input |
|
ReportCancellation
reports cancellation to POSTAY
Syntax |
ReportCancellation($LineItemPayment, $hCancelProducts, $hCancelReasons, $Comment); |
Input |
|
ReportConsignment
reports consignment to POSTAY
Syntax |
ReportConsignment($LineItem, $hConsignedProducts, $TrackingId); |
Input |
|
ReportOrderReturns
reports consignment to POSTAY
Syntax |
ReportOrderReturns( $self, $hReturnQuantity, $hReturnReasons, $hReturnReduction, $Comment, $RefundDeliveryCosts); |
Input |
|
ReportTrackingId
reports consignment to POSTAY
Syntax |
ReportTrackingId($LineItem, $ConsignmentId, $TrackingId); |
Input |
|
SendPOSTPAYRequest
sends the xml to postpay
Syntax |
my $hResult = SendPOSTPAYRequest($XML, $LineItemPayment); |
Input |
|
Return |
|
SetCancellationIDOrConsignedQuantity
if type="return" set the return id for all LineItemProducts which have been returned and reduce the consigned quantity and the quantity else set the cancellation id for all LineItemProducts which have been consigned and reduce the quantity
Syntax |
SetCancellationIDOrConsignedQuantity($aLineItemProducts,$hProducts,$ID); |
Input |
|
SetConsignmentID
set the the consignedID on lineitemproducts
Syntax |
SetConsignmentID($aLineItemProducts,$hConsignedProducts,$ConsignmentID); |
Input |
|
SetDispatchedStatus
set the consignment id for all LineItemProducts which have been consigned
Syntax |
SetDispatchedStatus($aLineItemProducts,$TrackingID,$ConsignmentID); |
Input |
|
SetTrackingID
find lineitemproduct with corresponding consignment id and set the tracking id
Syntax |
SetTrackingID($aLineItemProducts,$TrackingID,$ConsignmentID); |
Input |
|
_HandleNotificationResponse
handles all notification responses
Syntax |
_HandleNotificationResponse($hResult,$LineItemPayment); |
Input |
|
_HandleSubmitCartResponse
handles response for submitcart
Syntax |
_HandleSubmitCartResponse($hResult); |
Input |
|
Return |
|