CaptainBlue Posted December 13, 2006 Posted December 13, 2006 We've recently gone to full test status and the Protx side of things seems to work with test transactions. Success URL: http://ourdomain/catalog/checkout_process.php Failure URL: http://ourdomain/catalog/checkout_process.php The trouble comes after the customer makes payment: 1. The item is still in the customer's shopping cart; 2. The product is still available with x items of stock rather than x-1; 3. The user details show no orders placed by them; 4. The orders section show no orders taken; and 5. The customer does not get a confirmation e-mail from the shop confirming the order, just from Protx. It looks as though checkout_process.php isn't being processed? Protx have suggested this: This could be a problem with the crypt string being decoded where it is not updating your shopping cart or that your encryption password could be one character out on the encryption password. Any ideas? Quote
CaptainBlue Posted December 13, 2006 Author Posted December 13, 2006 Right, well it looks like the fix is to modify the protx_form.php file as follows: Look for: function before_process() { global $HTTP_POST_VARS, $crypt; Add a line: $crypt = $_REQUEST['crypt']; and: $process_button_string = str_replace(" ", "+", $process_button_string); Then change: $Decoded = $this->SimpleXor(base64_decode($crypt),MODULE_PAYMENT_PROTX_FORM_PASSWORD); to: $Decoded = $this->SimpleXor(base64_decode(str_replace(" ", "+", $crypt)),MODULE_PAYMENT_PROTX_FORM_PASSWORD); Hope this helps anyone else in this situation. Quote
Web3d Posted December 13, 2006 Posted December 13, 2006 Captainblue thanks very much for your post, it turns out i had just been missing one line of code but your post cleared things up been struggling with this problem for a while, thanks again for your post! John :thumbsup: Quote
CaptainBlue Posted December 13, 2006 Author Posted December 13, 2006 (edited) You're welcome. It was case of combining a couple of suggestions others had made in some other threads here. Edited December 13, 2006 by CaptainBlue Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.