Skip to content

Commit

Permalink
Remove redundant log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
davdebcom committed Feb 19, 2019
1 parent 2261c58 commit 583eb54
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,6 @@ public function refund_order_items( $order, $order_id, $amount, $items, $payment
$original_order_item_id = $item->get_meta( '_refunded_item_id', true );
$item_refund_amount = abs( $item->get_total() + $item->get_total_tax() );

Mollie_WC_Plugin::debug( 'Order item ids: ' . $item->get_name() . ' ' . $line->metadata->order_item_id . ' ' . $original_order_item_id );

if ( $original_order_item_id == $line->metadata->order_item_id ) {

// Mollie doesn't allow a partial refund of less than 1 quantity, so when merchants try that, warn them and block the process
Expand Down Expand Up @@ -976,9 +974,6 @@ public function refund_amount( $order, $order_id, $amount, $payment_object, $rea
// Is test mode enabled?
$test_mode = Mollie_WC_Plugin::getSettingsHelper()->isTestModeEnabled();

Mollie_WC_Plugin::debug( $amount );


if ( $payment_object->isCreated() || $payment_object->isAuthorized() || $payment_object->isShipping() ) {
$note_message = 'Can not refund order amount that has status ' . ucfirst( $payment_object->status ) . ' at Mollie.';
$order->add_order_note( $note_message );
Expand Down

0 comments on commit 583eb54

Please sign in to comment.