Here's a question which may be stupid. Do I really need the PayPal code since I am getting what I want into the database? The transaction will either go through or not on PayPal even without the listener.php page. So all I am wanting to do really is capture the payment in my DB which I can without the PayPal code and only using the INSERT function. If the payment fails the payment_status will show that and INSERT that into my DB which I can use to shows the balance is still due.
Or, am I missing something else?
I've attached the listener.php file without the PayPal code and still have the (file_put_contents("test.txt",json_encode($_POST));) code which is still returning the transaction responses. So there is still the info being passed correctly otherwise I would not receive the payment_status amoung other items not in my original button form, right?