summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-16 13:11:36 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-16 13:11:36 +0200
commitb454221571b3535e2ded0d420dfe50c63b080575 (patch)
tree164b501a4b77951e3bad1fd326ed67458deb0cd5
parenta20e52199a20833c1a25610a44dbb2a3c9313a6b (diff)
downloadwoocommerce-taler-b454221571b3535e2ded0d420dfe50c63b080575.tar.gz
woocommerce-taler-b454221571b3535e2ded0d420dfe50c63b080575.tar.bz2
woocommerce-taler-b454221571b3535e2ded0d420dfe50c63b080575.zip
try to fix callback initialization
-rw-r--r--plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php2
1 files changed, 1 insertions, 1 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 0da45fc..993c634 100644
--- a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
+++ b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
@@ -203,7 +203,7 @@ function gnutaler_init_gateway_class()
$this->Payment_url = $this->get_option( 'Payment_url' );
$this->Order_text = $this->get_option( 'Order_text' );
- add_action( 'woocommerce_api_'. strtolower( get_class($this) ), array( $this, 'callback_handler' ) );
+ add_action( 'woocommerce_api_callback', array( $this, 'callback_handler' ) );
// This action hook saves the settings
add_action( 'woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );