So, I was having some nasty issues with Plug'n'Pay's payment module, including a blank screen on checkout_payment if a card authorization (transaction) had an error, normally an HTTP 406 error. This error was caused by PlugnPay's plugin attempting to pass the error message via urlencode and a redirect, flagging a security feature to stop the whole circus. Got pissed, fixed it (thanks to DrByte for some code suggestions), added a few tweaks, rewrote much of the readme, submitted a copy to Plug'n'Pay's Support Team and posted the plugin on this site for download. It's currently awaiting moderator approval, but should be visible soon.
Now, Plug'n'Pay hasn't recertified my changes to be PCI compliant, so you're on your own there, but a copy has been submitted to them for approval, and should be reviewed and certified sometime in the near future. It should be noted that there were no changes to how the credit card data is passed, only to how the error messages are passed to the checkout_payment page (via messageStack). I also added a link for a customer to check their MercuryGift card balance and activity next to the CVV/security code field in the gift card area (much like "Where's my CVV" next to the CVV field for credit/debit cards). Error messages are now coded as well.
I don't see any forum thread on here dedicated to PlugnPay support, but after my wonderful issues thus far , I've come to understand their plugin, it's quirks and habits, and I thought it best to create an updated version and release it here. I don't work for Plug'n'Pay, I'm not a PHP genius, but I get around pretty well and do solicit some occasional help from the Zen Cart community. Also, I'm a dealer for Mercury Payment Systems (a CC processor that integrates with Plug'n'Pay), so those resources have come in handy during this time of, um, triumph? lol. Anyways, I provide the best support I can to all of my merchants, and hope to help some of you as well. If you're having issues with PlugnPay, post here! Hopefully, we can all help each other out.
Link to the plugin: http://www.zen-cart.com/downloads.php?do=file&id=873
Just a note: empty cURL responses tend to be cipher issues, peer verification, proxy issues or cURL not being compiled properly, and not generally in that order. Check that stuff first. See lines 453 through 463 in the plugin. Also, make sure you're live on Plug'n'Pay's end. Happy hunting!
Bookmarks