moneris-eselectplus-api icon indicating copy to clipboard operation
moneris-eselectplus-api copied to clipboard

Guidelines on how to use 3D Secure / VBV

Open gabidi opened this issue 10 years ago • 7 comments

Any guidelines on how to use 3DSecure ? Moneris documentation doesn't really help on that one either. Thank you.

gabidi avatar Aug 13 '14 21:08 gabidi

This comment right here:

// force the sort here... because why not... fuck it, I give up. Moneris are just the fucking worst, and I // have lost my will to try and program well around their insanity.

If ever a comment held so much truth.

Btw: When doing your 3D Secure txn make sure your order_id/xid is EXACTLY 20 chars long.. Days lost ..

gabidi avatar Aug 19 '14 15:08 gabidi

Oh man, don’t I know it. That API is just the worst. I actually had a conversation with a developer at Moneris about how in XML, node order shouldn’t be important, and his basic response was ¯_(ツ)_/¯.

On Aug 19, 2014, at 9:28 AM, gabidi [email protected] wrote:

This comment right here:

// force the sort here... because why not... fuck it, I give up. Moneris are just the fucking worst, and I // have lost my will to try and program well around their insanity.

If ever a comment held so much truth.

Btw: When doing your 3D Secure txn make sure your order_id/xid is EXACTLY 20 chars long.. Days lost ..

— Reply to this email directly or view it on GitHub.

kslgrd avatar Aug 19 '14 15:08 kslgrd

Honestly, there might be a bug in the 3D Secure workflow, where it'll work with Moneris' testing servers, but not the live ones. It seems like when I'm calling $gateway->txn($params);, it's returning an invalid response. The whole workflow works fine on the testing servers though. I haven't had time to investigate the issue yet.

kslgrd avatar Aug 19 '14 16:08 kslgrd

Yeah ... after a whole day with Moneri's dev support team and just loosing two days of always getting 'Invalid txn' response for the txn() call. I figured the problem is with XID .. it has to be EXACTLY 20 chars. Did that and everything worked :/ So much life could've been enjoyed in those two days. Thanks for making this non the less.

gabidi avatar Aug 19 '14 16:08 gabidi

Oh man, I ran into that exact same problem. It's in the docs, but I missed it when writing my own implementation.

'order_id' => substr($order->id() . '-' . sha1(mt_rand()), 0, 20),// this HAS TO BE 20 chars in length, or it won't work... this will last for QUITE A WHILE and allow me to extract the order ID

kslgrd avatar Aug 19 '14 16:08 kslgrd

Things are going to get dicey after my 9.99e19th order, but hopefully by then, it's someone else's problem.

kslgrd avatar Aug 19 '14 16:08 kslgrd

I think we'll break the internet/planet before then :)

gabidi avatar Aug 19 '14 16:08 gabidi