summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-10-13 00:16:52 +0200
committerChristian Grothoff <christian@grothoff.org>2020-10-13 00:16:52 +0200
commite43cb4e2739f6a0f954947c99a6f4bcefe2a511c (patch)
tree85d7fda7ca85305c6ea1fa9da5d383b70ffab50a
parent774a32a6f5781a1f9f4cef0328802a54bd00c36c (diff)
downloadwoocommerce-taler-e43cb4e2739f6a0f954947c99a6f4bcefe2a511c.tar.gz
woocommerce-taler-e43cb4e2739f6a0f954947c99a6f4bcefe2a511c.tar.bz2
woocommerce-taler-e43cb4e2739f6a0f954947c99a6f4bcefe2a511c.zip
add refund_delay option
-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 714742c..db2b6a5 100644
--- a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
+++ b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
@@ -629,7 +629,7 @@ function gnutaler_init_gateway_class()
if (isset ($refund_delay))
{
$order_json['refund_delay'] = array (
- 'd_ms' => $refund_delay
+ 'd_ms' => 1000 * 60 * 60 * 24 * intval ($refund_delay)
);
}
return $order_json;