pcp-37 / return to checkout after three times trying but returned with insufficient funds error

This commit is contained in:
David Remer 2020-09-02 08:43:41 +03:00
parent ae12409454
commit 00389dac84
6 changed files with 54 additions and 5 deletions

View file

@ -131,7 +131,7 @@ class OrderProcessor {
*/
public function process( \WC_Order $wc_order, \WooCommerce $woocommerce ): bool {
$order = $this->session_handler->order();
if (! $order) {
if ( ! $order ) {
return false;
}
$wc_order->update_meta_data( PayPalGateway::ORDER_ID_META_KEY, $order->id() );