Skip to content

Commit

Permalink
Merge pull request #154 from antondrob/master
Browse files Browse the repository at this point in the history
Update 1.4.28 - settle fee on complete
  • Loading branch information
markusbrunke authored Aug 8, 2022
2 parents bf9ecfe + 4d00c4c commit ef77148
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The Reepay plugin extends WooCommerce allowing you to take payments on your stor
See installation guide right here: https://intercom.help/reepay/reepay-plugins/woocommerce-plugin

== Changelog ==
v 1.4.28 - Settle fee on complete
v 1.4.27 - Update customer after reorder
v 1.4.26 - Fix reorder after cancel
v 1.4.25 - Fix duplicated handle, remove settle button for already settled items
Expand Down
8 changes: 6 additions & 2 deletions includes/class-wc-gateway-reepay-capture.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,15 @@ public function capture_full_order( $order_id, $this_status_transition_from, $

if($this_status_transition_to == 'completed'){

foreach ( $order->get_items() as $item_key => $item ) {
foreach ( $order->get_items() as $item ) {
$this->settle_item($item, $order);
}

foreach( $order->get_items( 'shipping' ) as $item_id => $item ){
foreach( $order->get_items( 'shipping' ) as $item ){
$this->settle_item($item, $order);
}

foreach( $order->get_items( 'fee' ) as $item ){
$this->settle_item($item, $order);
}
}
Expand Down
2 changes: 1 addition & 1 deletion reepay-woocommerce-payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Description: Provides a Payment Gateway through Reepay for WooCommerce.
* Author: reepay
* Author URI: http://reepay.com
* Version: 1.4.27
* Version: 1.4.28
* Text Domain: reepay-checkout-gateway
* Domain Path: /languages
* WC requires at least: 3.0.0
Expand Down

0 comments on commit ef77148

Please sign in to comment.