summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php5
1 files changed, 2 insertions, 3 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 8aece9d..66bef5c 100644
--- a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
+++ b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
@@ -772,13 +772,12 @@ function gnutaler_init_gateway_class()
. $wc_order_id
. '?h_contract='
. $h_contract;
- $wc_order->update_status( 'refunded' );
+ $wc_order->add_meta_data( 'GNU_TALER_REFUND_URL', $refund_url );
+ $wc_order->update_status( 'refunded' );
$this->debug( sprintf( __('Received refund URI %s from Taler backend', 'gnutaler' ),
$refund_uri ) );
$this->notice( sprintf( __('The user must visit %s to obtain the refund', 'gnutaler' ),
$refund_url ) );
- $wc_order->add_meta_data( 'GNU_TALER_REFUND_URL', $refund_url );
-
return true;
case 403:
return new WP_Error( 'error',