summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-08-05 17:28:43 +0200
committerChristian Grothoff <christian@grothoff.org>2020-08-05 17:28:43 +0200
commit13b442e970a26350ccefa71d9bb97ffc1487753d (patch)
tree0f1a3c7ed8cc7fcbfe72b57d94d63e8d92850379
parent9a4259c0fc83d690dfc1dbb4840feeae6d4288fd (diff)
downloadwoocommerce-taler-13b442e970a26350ccefa71d9bb97ffc1487753d.tar.gz
woocommerce-taler-13b442e970a26350ccefa71d9bb97ffc1487753d.tar.bz2
woocommerce-taler-13b442e970a26350ccefa71d9bb97ffc1487753d.zip
product ID must be a string
-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 9143f37..a755eef 100644
--- a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
+++ b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php
@@ -613,7 +613,7 @@ function gnutaler_init_gateway_class()
'description' => 'Order of product: ' . $product['data']->get_title(),
'quantity' => $product['quantity'],
'price' => $wc_order_currency . ':' . $product['data']->get_price(),
- 'product_id' => $product['data']->get_id(),
+ 'product_id' => strval( $product['data']->get_id() ),
'delivery_location' => $this->mutate_shipping_information_to_json_format($wc_order),
);
}