Subscription Datafeed is failing
-
Good day,
I needed to add a Custom Auto email functionality on Subscription datafeed like if Subscription has ended, CC is about to expire and 2 more with a custom message and I added it inside
} elseif (isset($_POST["FoxySubscriptionData"])) { //some codes here }
Im not sure how to test this, so I asked foxycart team if they have a way to test subscription datafeed like the Refeed Now link on their admin transaction page and they do have it under Advance Tab
https://screencast.com/t/raOeZ4Ei0Problem is I always get this error
https://screencast.com/t/6B4qINyHvnjSo I tried to log something and added these lines of code
error_log('----------Start Datafeed--------'); error_log('----------'.print_r($_POST,1).'--------'); error_log('----------END Datafeed--------');
On the datafeed endpoint so I can see POST vars, I noticed that for Regular transaction (Testing it via Refeed Now link of fc admin), Im seeing the Foxydata post var which is working properly.
https://screencast.com/t/kmuqTxLBFkBut when I tried to Test Subscription datafeed via Advanced tab of FC, POST var is empty so it has no foxysubscriptiondata post var.
https://screencast.com/t/xYW5Pr0MHI wonder how is this happening? Any response will be greatly appreciated.
Thank you
- The topic ‘Subscription Datafeed is failing’ is closed to new replies.