summaryrefslogtreecommitdiff
path: root/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php')
-rw-r--r--plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php27
1 files changed, 2 insertions, 25 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 9662477..011e209 100644
--- a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
+++ b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
@@ -42,13 +42,10 @@ define("MERCHANT_PROTOCOL_AGE", 0);
/*
-TODO (with FIXME in code):
-- figure out where OIDC logic should go
-
-TODO (without FIXME in code):
+TODO:
- refund needs to be tested more (with wallet!)
-FEATURES:
+OPEN FEATURES:
- MAYBE: multi-currency support (i.e. use https://$CURRENCY.$backend_url/?)
*/
@@ -220,26 +217,6 @@ function gnutaler_init_gateway_class()
20,
4 );
- // Modify OIDC connect button text for Reclaim:ID
- // (FIXME: this probably doesn't belong here!)
- add_filter('openid-connect-generic-login-button-text', function( $text ) {
- $text = __('Login with Re:ClaimID', 'gnutaler' );
- return $text;
- });
-
- // make sure OIDC 'login' goes to WooCommerce
- // (FIXME: this probably doesn't belong here, but maybe into the
- // OIDC button hook for WC!?)
- add_action('openid-connect-generic-redirect-user-back',
- function( $redirect_url, $user ) {
- // Take over the redirection complete. Send users somewhere special based on their capabilities.
- global $woocommerce;
- $checkout_url = $woocommerce->cart->wc_get_checkout_url ();
- wp_redirect( $checkout_url); // or admin_url( $checkout_url) )?;
- exit();
- },
- 10,
- 2);
}
/**