无法读取已发布的值

I have a notification listner file that listens notifications form my payment processor, Im using this to read the available data thats submitted, its submitted as POST TXT

$message = file_get_contents("php://input");

when I print $message it prints the whole array properly like

Array
(
    [TRANSACTION_TYPE] => sale
    [ORDER_STATUS] => SUCCESS
    [PAYOUT_CURRENCY] => USD
    [PAYOUT_AMOUNT] => 100.00
    [TAXES_AMOUNT] => 0.00
    [TAXES_AMOUNT_USD] => 0.00
    [VOID] => Y
    [EVENT_ID] => 1
)

but when I use the array values in my conditions they are failing, when I print $message['ORDER_STATUS'] this prints A but in the array it prints as SUCCESS

any idea why this value is changing when using a selected array value?

If your $message array is like this,

Array
(
    [TRANSACTION_TYPE] => sale
    [ORDER_STATUS] => SUCCESS
    [PAYOUT_CURRENCY] => USD
    [PAYOUT_AMOUNT] => 100.00
    [TAXES_AMOUNT] => 0.00
    [TAXES_AMOUNT_USD] => 0.00
    [VOID] => Y
    [EVENT_ID] => 1
)

than try this way to get value of each index.

$message->TRANSACTION_TYPE it will give you SUCCESS

Here, you can't access directly because it's as Object Array.