Skip to content

Commit

Permalink
Merge pull request #1459 from angelleye/PFW-640
Browse files Browse the repository at this point in the history
Express Checkout - CartFlows Discount Not Holding, PFWMA-640
  • Loading branch information
deepakmaurya committed Jun 10, 2020
2 parents db6584d + fee3092 commit a614df3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions classes/wc-gateway-paypal-express-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -2337,7 +2337,7 @@ public function handle_wc_api() {
$this->angelleye_check_cart_items();

$validate_data = WC()->session->get( 'validate_data' );
WC()->cart->calculate_totals();

if( !empty($validate_data) ) {
$order_id = WC()->checkout()->create_order($validate_data);
} else {
Expand Down Expand Up @@ -2399,8 +2399,6 @@ public function handle_wc_api() {

$validate_data = WC()->session->get( 'validate_data' );

WC()->cart->calculate_totals();

if( !empty($validate_data) ) {
$order_id = WC()->checkout()->create_order($validate_data);
} else {
Expand Down

0 comments on commit a614df3

Please sign in to comment.