diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-09-05 01:01:53 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-09-05 01:01:53 +0200 |
commit | 1cfa64f35597695dd67190c141678673dd76c7b2 (patch) | |
tree | 2a8d05becb3d591c8ec9040c44a00cfc95c08363 | |
parent | 7582955791fa9a720852bba7288544c55444fa70 (diff) | |
download | woocommerce-taler-1cfa64f35597695dd67190c141678673dd76c7b2.tar.gz woocommerce-taler-1cfa64f35597695dd67190c141678673dd76c7b2.tar.bz2 woocommerce-taler-1cfa64f35597695dd67190c141678673dd76c7b2.zip |
fix location generation (#6566)
-rw-r--r-- | plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php | 4 |
1 files changed, 1 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 011e209..6a52a41 100644 --- a/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php +++ b/plugin/GNU-Taler-Payment-Gateway/class-wc-gnutaler-gateway.php @@ -617,8 +617,7 @@ function gnutaler_init_gateway_class() . $wc_order_id, 'order_id' => $wc_order_id, 'products' => $wc_order_products_array, - 'locations' => array( 'delivery_loc' => - $this->mutate_shipping_information_to_json_format( $wc_order ) ), + 'delivery_location' => $this->mutate_shipping_information_to_json_format( $wc_order ), ), ); return $order_json; @@ -640,7 +639,6 @@ function gnutaler_init_gateway_class() 'quantity' => $product['quantity'], 'price' => $wc_order_currency . ':' . $product['data']->get_price(), 'product_id' => strval( $product['data']->get_id() ), - 'delivery_location' => 'delivery_loc', ); } return $wc_order_products_array; |