PDA

View Full Version : [Mod Installation] Bank Simple Payment Page and One Page Checkout conflict



tcshadow
08-25-2011, 08:49 PM
We currently use the simple hosted payments page from this bank

https://www.ipg.stgeorge.com.au/download.asp

Have until recently been using 2.0 RC and also installed the custom payment mod on 2.0.25 without a problem.

However on trying to make it work on 2.5 RC1 we're finding it is not accepting successful payments and instead returns www.domain.com/checkout.php?error_message=Please+select+a+payment +method+for+your+order (http://www.domain.com/checkout.php?error_message=Please+select+a+payment +method+for+your+order)

Payments with failed codes work perfectly fine(as in return an error).

Help please?

tcshadow
08-26-2011, 04:19 AM
I have tried to install this contrib http://www.oscmax.com/forums/new-oscommerce-contributions/25890-st-george-bank-australia-hosted-payment-page-hpp-payment-module.html

but I simply can't make it work. When the transaction is successful, oscmax records the order, sends out the email, but still kicks me back to checkout.php with the error

/checkout.php?payment_error=stgeorge&error=There+has+been+an+error+or+your+payment+has+ been+tampered+with.+Please+contact+the+merchant+fo r+support.

michael_s
08-26-2011, 07:20 AM
what checkout system? Disable OPC and test the standard checkout process with the new modules.

tcshadow
08-26-2011, 08:29 PM
After stuffing around with it for about 12 hours we finally figured it out and got it working... Apparently the new module(linked above) does some sort of authorisation check when it returns to the cart and checks the clientid. This clientid is not actually used other than for this and my old custom module didn't do this.

Unfortunatelymy old module doesn't work with OPC / 2.5 and it took us forever and a day to get it right. Eventually I chanced upon my clientid in the url of my merchant facility and we got it to authorise properly and go through to checkout_success

The funny thing was we were getting successful payments and oscmax was recording a sale it just wasn't going through to checkout_success.php