summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-16 13:33:07 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-16 13:33:07 +0200
commit16d91cc189554667d9fd649b088188fe848cc0eb (patch)
tree91981755659d45a31522b77a1507e3cdb2f9d65a
parentceba4eb8f059e8910cd170cc731bb38b4f38f13f (diff)
downloadwoocommerce-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.php7
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' =>