summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-13 18:33:17 +0200
committerChristian Grothoff <christian@grothoff.org>2020-10-13 18:33:17 +0200
commit6391d8f900233aefedbbb834aa82b5cc34bf0f26 (patch)
treea945b14254a885a9ad591f490ef169af24a3ac6e
parent1f5b248c5bc16c8a9422bdeb1ff31589a73ecb62 (diff)
downloadwoocommerce-taler-6391d8f900233aefedbbb834aa82b5cc34bf0f26.tar.gz
woocommerce-taler-6391d8f900233aefedbbb834aa82b5cc34bf0f26.tar.bz2
woocommerce-taler-6391d8f900233aefedbbb834aa82b5cc34bf0f26.zip
dbg logic
-rw-r--r--plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php17
1 files changed, 10 insertions, 7 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 bbfb7e6..767a765 100644
--- a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
+++ b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
@@ -74,6 +74,16 @@ function gnutaler_add_gateway_class( $gateways ) {
add_filter( 'woocommerce_payment_gateways', 'gnutaler_add_gateway_class' );
+add_filter ( 'openid-connect-generic-cookie-redirect-url',
+ 'filter_redir_cb' );
+
+function filter_redir_cb ( $var ) {
+ $logger = wc_get_logger();
+ $logger->log ("INFO", 'REDIR input is ' . $var );
+ return $var;
+}
+
+
/**
* The class itself, please note that it is inside plugins_loaded action hook
*/
@@ -221,16 +231,9 @@ function gnutaler_init_gateway_class()
20,
4 );
- add_filter ( 'openid-connect-generic-cookie-redirect-url',
- array ($this, 'filter_redir_cb') );
}
- function filter_redir_cb ( $var ) {
- $this->info( 'REDIR input is ' . $var );
- return $var;
- }
-
/**
* Called when WC sends out the e-mail notification for refunds.
* Adds a Taler-specific notice for where to click to obtain