I am passing an array:
$postParams = array(
'order_id' => $cart_order_id,
'price_amount' => $grandTotal,
'price_currency' => 'XBT',
'receive_currency' => 'XBT',
Etc
Which seems to be passed into the curl_exec as:
“order_id=180605-102147-3094&price_amount=0.002831367&price_currency=XBT&receive_currency=XBT&”
(http_build_query($params) produces the above string)
It looks like there is encoding is happening somewhere because when I look in https://coingate.com/account/apps/api-requests
I can see “{"order_id":"180605-102147-3094","amp;price_amount":"0.002831367","amp;price_currency":"XBT","amp;receive_currency":"XBT","amp;” etc
Obviously somewhere the & is encoded to & but then not decoded again.
Any clues to solving this?
I am passing an array:
$postParams = array(
'order_id' => $cart_order_id,
'price_amount' => $grandTotal,
'price_currency' => 'XBT',
'receive_currency' => 'XBT',
Etc
Which seems to be passed into the curl_exec as:
“order_id=180605-102147-3094&price_amount=0.002831367&price_currency=XBT&receive_currency=XBT&”
(http_build_query($params) produces the above string)
It looks like there is encoding is happening somewhere because when I look in https://coingate.com/account/apps/api-requests
I can see “{"order_id":"180605-102147-3094","amp;price_amount":"0.002831367","amp;price_currency":"XBT","amp;receive_currency":"XBT","amp;” etc
Obviously somewhere the
&is encoded to&but then not decoded again.Any clues to solving this?