Skip to content

Commit

Permalink
Merge pull request #9 from omise/hotfix/3ds-integrated-bug
Browse files Browse the repository at this point in the history
Fix the process in the callback method
  • Loading branch information
fred committed Sep 24, 2015
2 parents 239ec4b + e6c08cc commit dfbd077
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions omise-wc-gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,14 @@ public function omise_3ds_handler()
WC()->cart->empty_cart();

header("Location: ".$confirmed_url);
die();
} else {
if ($result->failure_code && $result->failure_message) {
$order->add_order_note('Charge was not completed, '.$result->failure_message);
wp_die($result->failure_message, "Charge was not completed", array( 'response' => 500 ));
} else {
wp_die("Charge still in progress", "Charge still in progress", array( 'response' => 500 ));
}
}

wp_die( "Access denied", "Access Denied", array( 'response' => 401 ) );
Expand Down

0 comments on commit dfbd077

Please sign in to comment.