ePages 7.47.0 - DE_EPAGES/MolliePayments/API/MolliePaymentsRefundsService.pm

Package DE_EPAGES::MolliePayments::API::MolliePaymentsRefundsService

Refunds Service for MolliePayments

Functions

doRefund
new
updateLineItemRefundAmounts
updateRefundAmountsByGetMolliePayment

doRefund

Creates a Mollie Payment Refund and updates the LineItemPayment with refunds info received.

Syntax
PaymentRefundsService->doRefund( $LineItemPayment, $RefundAmount );
Input
LineItemPayment (object)
LineItemPayment
RefundAmount (float)
RefundAmount
Return
updated Refunds info (HashRef)
HashRef

new

Instantiates a new MolliePaymentsRefundsService.

Syntax
DE_EPAGES::Mollie::API::MolliePaymentsRefundsService->new( %args );
Input
$RequestObject (object)
request object to handle
Return
MolliePaymentsRefundsService (DE_EPAGES::MolliePayments::API::MolliePaymentsRefundsService)
object

updateLineItemRefundAmounts

Updates the LineItemPayment with refunds info received on a payment response.

Syntax
PaymentRefundsService->updateLineItemRefundAmounts( $LineItemPayment, $hPaymentResponse );
Input
LineItemPayment (object)
LineItemPayment
hPaymentResponse (HashRef)
hPaymentResponse
Return
updated Refunds info (HashRef)
HashRef

updateRefundAmountsByGetMolliePayment

Requests Mollie Payment information and updates the LineItemPayment with refunds info received.

Syntax
PaymentRefundsService->updateRefundAmountsByGetMolliePayment( $LineItemPayment );
Input
LineItemPayment (object)
LineItemPayment