Hi, just wondering has anyone successfully modified the postrealex.fil script to automatically re direct the "payment successful" page back to to the receipt page ?
Announcement
Collapse
No announcement yet.
Realex auto redirect to receipt
Collapse
X
-
Here is a solution kindly provided by Kirthi and the development team . I've tested it and it works
(don't take my word for it though, you should buy something just to test )
"perl solution
make a backup copy of PostRealex.fil in {site}\CommonOCC folder
* edit PostRealex.fil in {site}\CommonOCC folder
at the bottom of the script you should see
print <<EOM;
Thank you - your order (number $orderid) has been accepted
To view your receipt please click <a href=$receiptUrl>
<b><u>HERE</u></b></a><br><br>
EOM
*replace this with
print <<EOM;
<script>parent.location.replace('$receiptUrl');</script>
<noscript>
Thank you - payment for your order (number $orderid) has been accepted
To complete your order and view your receipt please click <a href=$receiptUrl>
<b><u>HERE</u></b></a><br><br>
</noscript>
EOM
save and update the web site
test the behaviour after paying by realex
If JavaScript is enabled then the user should be bounced to the Receipt page otherwise the message will be shown and the buyer will need to click the link.
I have not been able to test this as our Realex test site is not working for me today. If it doesn't work for the customer they can revert to the backup copy of the file.
Regards,
Kirthi
Technical Support"
Comment
-
To be fair to realex they did try to come up with a solution but I guess Selleredeck had the greater knowledege unsurprisingly. Glad it worked out for you. Perhaps sellerdeck could update the PSP script for new builds.
Originally posted by guccij View PostThanks for this - I can confirm it works.
I asked Global Payments about it last week but they said it would need to be a Sellerdeck effort, and so it proved
Comment
-
We're using SellerDeck v2013 and are just in the process of migrating over to RealEx as our payment gateway.
Are the instructions listed above (in this post) all we need to do to get RealEx to correctly redirect to our receipt page?
I've also come across this in the community. Is this relevant or is it just for earlier versions of SellerDeck?
http://community.sellerdeck.com/show...6&postcount=19
Would somebody mind advising us as to what we need to do?
Comment
-
-
Testing now with 2014 and the auto re direct seems to be working ok using payment method invoice on receipt.
Edit: just checked postrealex file and it looks like the fix has not in fact been applied so I will need to apply the patch from above again when we go live.
Originally posted by guccij View PostAs we now have a patch which makes Global/Realex compatible with v14.0.1 (yay), it would be lovely if whoever came up with this thread's auto return solution could do the same for the new patch.
Pretty please
Comment
-
Thanks, I'm assuming you mean it works without modification ? Perhaps its mofidied by a different method as my postrealex file in the new version is still showing the original (pre fix)
"print <<EOM;
Thank you - your order (number $orderid) has been accepted
To view your receipt please click <a href=$receiptUrl>
<b><u>HERE</u></b></a><br><br>
EOM
Originally posted by guccij View PostIt does work on v14 ...
Comment
-
Comment