So I have my PHP IPN script working, now I am just not sure how to get the post values? Paypal returns the post as an array like this.
transaction[0].is_primary_receiver=false
&transaction[0].id_for_sender_txn=50E02759CC687801U
&log_default_shipping_address_in_transaction=false
&transaction[0].receiver=xxxxxxxxxx@gmail.com
&action_type=PAY
&transaction[1].status=Completed
There is obviously more but you get the idea, I tried accessing the post for status like this.
$payment_status = $_POST['transaction'][1]['status']
but this doesn't work, it returns the first letter which is C. So how do I access the values for all of them.