diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-08-16 13:33:07 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-08-16 13:33:07 +0200 |
commit | 16d91cc189554667d9fd649b088188fe848cc0eb (patch) | |
tree | 91981755659d45a31522b77a1507e3cdb2f9d65a | |
parent | ceba4eb8f059e8910cd170cc731bb38b4f38f13f (diff) | |
download | woocommerce-taler-16d91cc189554667d9fd649b088188fe848cc0eb.tar.gz woocommerce-taler-16d91cc189554667d9fd649b088188fe848cc0eb.tar.bz2 woocommerce-taler-16d91cc189554667d9fd649b088188fe848cc0eb.zip |
logging
-rw-r--r-- | plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php index 744ee98..2b6d304 100644 --- a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php +++ b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php @@ -252,6 +252,7 @@ function gnutaler_init_gateway_class() { if (! isset( $_GET['order_id'] ) ) { + $this->notice ("Lacking 'order_id', forwarding user to neutral page" ); if ( is_user_logged_in() ) wp_redirect(get_home_url() . '/my-account/orders/'); else @@ -279,7 +280,7 @@ function gnutaler_init_gateway_class() if (! $merchant_order_status_response ) { } if ('paid' == $merchant_order_status_response['order_status']) { - notice('Payment succeeded and the user was forwarded to the order confirmed page' ); + notice('Payment succeeded and the user was forwarded to the order confirmed page' ); //Completes the order $wc_order->payment_complete(); //Empties the shopping cart @@ -587,7 +588,9 @@ function gnutaler_init_gateway_class() // Note that the classname must match (funky code, // especially given that above we use // 'strtolower(get_class($this))'! - 'fulfillment_url' => get_home_url() . '/wc-api/wc_gnutaler_gateway', + 'fulfillment_url' => get_home_url() + . '/?wc-api=' + . strtolower(get_class($this)), 'order_id' => $wc_order_id, 'products' => $wc_order_products_array, 'locations' => array( 'delivery_loc' => |