You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a problem with the GetForExchange function. The problem resides in Transaction.php and affects users that selected the option for return json.
A viable solution to the problem would be the following:
public static function getForExchange()
{
if (isset($_GET['order_id'])) {
return self::get($_GET['order_id']);
}
if (isset($_POST['order_id'])) {
return self::get($_POST['order_id']);
}
//try to see if it's json
$input = file_get_contents('php://input');
$json = json_decode($input,true);
if (json_last_error() == 0)
return self::get($json['order_id']);
$xml = simplexml_load_string($input);
return self::get($xml->order_id);
}
I did not have the time to do a PR, but i wanted to let you and others know that this is an issue.
Cheers
The text was updated successfully, but these errors were encountered:
Hey there,
There is a problem with the
GetForExchange
function. The problem resides inTransaction.php
and affects users that selected the option for return json.A viable solution to the problem would be the following:
I did not have the time to do a PR, but i wanted to let you and others know that this is an issue.
Cheers
The text was updated successfully, but these errors were encountered: