Home › Forums › Community Forum › One last question – S2 Payment Notificatoin
Tagged: S2 Payment Notification
This topic contains 8 replies, has 2 voices. Last updated by Horns Illustrated 3 years, 7 months ago.
Topic Author | Topic |
---|---|
Posted: Thursday May 16th, 2013 at 6:11 pm #50086 | |
|
|
I’m so there but need insight on one last item. I was able to create a MU Plugin and call it from the S2 Payment Notification. (BTW, pretty cool how S2 validates the php in the MU Plugin) Anyway, in my php code for the MU plugin, how do I call the URL for the sale.php from with the MU plugin? Do you simple do a redirect? If I had a page, I would render the Or, are you suggesting (tell me you didn’t make it just that simple) that I do the exact same thing in my php code and render it just like I would if I was outputting html? Terry PS. The MU Plugin works like a charm… |
List Of Topic Replies
Author | Replies |
---|---|
Author | Replies |
Posted: Tuesday May 21st, 2013 at 4:02 am #50253 | |
![]() |
|
Thank you for your inquiry.Sorry for the delay in response.
A redirect wouldn’t be the best choice here. You probably want to use this WordPress function. See: http://codex.wordpress.org/Function_Reference/wp_remote_fopen |
|
Posted: Tuesday May 21st, 2013 at 1:27 pm #50298 | |
|
|
Bruce, Thanks for the direction. I used it and it worked, however the data sent to iDev is not being used by iDev. I’m sending: https://www.hornsillustrated.com/idevaffiliate/sale.php?profile=xx&idev_saleamt=2.5&idev_ordernum=16903267 I do have the correct profile # and only replaced it here to xx. Cordially, Terry |
|
Posted: Wednesday May 22nd, 2013 at 3:56 am #50332 | |
![]() |
|
Posted: Wednesday May 22nd, 2013 at 11:50 am #50374 | |
|
|
Bruce, First, thank you for your reply. Secondly, I need to apologize. I have been pulling my hair out on this. Here is what I found: 1.) I actually (I know I did this before) did not remove the call in the API Tracking. This was the reason I kept thinking iDev as calling S2Member. 2.) I did remove it this time and double checked so it is gone from there. 3.) Going back to the MU Plugin – I used the $contents = wp_remote_fopen($uri); This is not working… I’ve tried it many different ways. I also output everything to a log. I output $contents which does not have anything in when it gets written to the log. This may be fine as I would take it as successful because the documentation suggest I would get false on failure. I’ve also tried to hardcode the variables that I’m passing with no luck either. I’m hoping you can help. This is getting extremely frustrating because it seems soooooo simple. Here is my code:
|
|
Posted: Thursday May 23rd, 2013 at 7:57 am #50439 | |
|
|
Bruce, You know I was thinking…why would I want to use the wp_remote_fopen? This opens a remote file, however the sale.php is located on my domain. Would I want to just use the include (/sale.php?profile=…) The wp_remote_fopen is not working so I’m left thinking maybe this is not the correct way to do this. What are your thougths? Cordially, |
|
Posted: Friday May 24th, 2013 at 8:53 am #50552 | |
|
|
Bruce Help… I’m about a week away from launching and really need to figure this out. Would be highly interested in your thoughts on this. I’m doing the MU Plugin and it’s triggering, however it’s not triggering the iDev sale.php so the sale gets counted. My logic in the MU Plugin works because I’m capturing the data in a log, however it’s not registering with iDev. Can you look at my code above and see what I might be doing wrong. Please know I would greatly appreciate your help and getting past this… Cordially, Terry |
|
Posted: Friday May 24th, 2013 at 11:51 pm #50612 | |
![]() |
|
Thanks for your patience.I’m very sorry for the delay in response.
You can’t use a PHP include() or anything like that here. I’d say the best way to handle this would probably be to create an HTML image tag. So instead of this:
You could do this:
That’s about as far as we can go with custom code. If you need further assistance, we recommend http://jobs.wordpress.net, or another freelance web site where WordPress® experts are offering their expertise through a bid on your project.
|
|
Posted: Tuesday May 28th, 2013 at 7:52 am #50740 | |
|
|
BRUCE… Here is what I did. I took out the wp_remote_fopen($uri) and replaced it with the echo My code looks like this:
and then I output $sendpart to a log file so I’ll know if code was generated. The code is generated as I see the data from $sendpart in the log. However, the echo is not triggering the iDev. I can copy the $sendpart URL into another browser window and it then does trigger it and I see the commission record in iDev. I can only assume the ECHO is not the solution either. Is there a way I can escalate this up the support chain. I’m even willing to pay for support on this. So far, I’ve done everything that you’ve instructed me and it’s not working. I know the MU Plugin is working and it’s running through the function fine, but neither solution you are suggest that will trigger the iDev is working. Cordially, |
This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.