I am doing payu automation refunds. In that after sending the request am
getting response as
$res = Array (
[status] => 0
[msg] => Refund FAILURE - Invalid amount
[error_code] => 105
[mihpayid] => 569611073
)
But if check gettype($res) its coming as string... Here am not able to get key and value pairs using
$res['status'] or $res['msg']
Its giving
A PHP Error was encountered
Severity: Warning
Message: Illegal string offset 'status'
Filename: pgrefunds/pgrefunds.php
Line Number: 296
suggest me how can get the kay value pairs...
var_dump($res). what do you get then?print_rthe array you showing in$res