Session ending on declined transaction.

cortesmejias

No avatar

2006-10-17 16:11

First off this software is awesomely developed, incredibly simple, no SQL DB's, real easy to navigate the coding.

I have spent the past few days linking Verisigns payflow payment gateway to the quick.cart software. It's setup much like the paypal system which is discussed on the forum. Once the user submits the order they then click the pay button on the messages.tpl page proceeding the order details page. The only issue I am running into here is that the user session expires once the order details are submitted. Which would mean if the billing details have an error the customer loses their cart. How can I extend a user's session until after they leave the messages.tpl page?

I know there are some variables server side for the way sessions are configured but obviously something is telling the code to expire the session once the delivery information has been obtained.

I will be glad to post instructions on how to set this up once I have fully completed the coding if anyone is interested, it is the same payment gateway as paypal payflow pro.

thanks in advance!

cortesmejias

No avatar

2006-10-17 21:34

I figure the quickest way of intergrating this would be using cookies. Where would I add the session codes so they appear before the head tag?

idaryl

Avatar: idaryl

2006-10-18 02:17

Verisign? are you kidding... I'm sure there are lots of people wanting that.... I would say a resounding yes..

Would'nt a cookie session die once you leave the index.php (does'nt that house everything?) I supposed a variable could be applied to the cookie onload of the index, prior to the includes, with a session time/date to expire when? say after 3hrs or so? could'nt the cookie expire after then rather than a kill cookie on end session?

Just ruminating...

cortesmejias

No avatar

2006-10-18 15:25

Well everything is working fine with transacting with the gateway and processing the payments. The way I have set it up is after completing your order details you are sent to another page using the messages.tpl ok msg with a main div tag. This page will display your contact and billing details(modified orders_more.tpl), at which point you can either go back and edit the info or hit confirm to send your form data to verisigns payment gateway. My only issue is at the confirm page the cart is already empty and the form data is already saved in QC.

I attempted at adding a cookie to the index.php file & also tried page.tpl. Neither worked and pretty much really messed up my mods. I added it before any head tag info but still no luck, I get an error basically saying header is already sent by another php. I am however fairly new to cookies and used a 1hour javascript cookie. Anyone who has used cookies succesfully with their QC to maintain basket contents after saving the data I would really appreciate a responce.

thanks in advance.

idaryl

Avatar: idaryl

2006-10-18 23:52

Wait another thought pops to mind - if perchance that the header.tpl is constantly active regardless of whether the menu.tpl or the content/main.tpl is being used - then - possibly the insertion of the cookie class at that point might be a way to enable the browser to recognize it and maintain it in memory - provided, of course that the window remains active - like when paypal opens its own window...


but... if you were to link the [ payment gateway as paypal payflow pro ] in an iframe (I think that was discussed somewhere) in the window that might mean the session would still be active because the window did'nt (in essence) change dramatically

just ruminating yet again - I would "love" an answer to this perplexing problem..

cortesmejias

No avatar

2006-10-19 15:13

I spent a good majority of my time yesterday trying to find where QC ends the user session upon data save on orders_delivery.tpl. Still cant find anything. Finding this nugget of code will bring much joy to my life and my client! =)

idaryl

Avatar: idaryl

2006-10-21 07:03

Any solutions = yet...?

cortesmejias

No avatar

2006-11-02 15:58

Just want to give an update on my work around for this issue. All the data is transmitted after the user enters their info. The paypal mod which is posted on the forums submits the data through messages.tpl after it has all been saved so the user cant go back and edit anything if they misentered any data wrong. Now users recieve an error message if any of the billing info is wrong and can re-submit. ill post a zip of my cart files when the project is complete.

idaryl

Avatar: idaryl

2006-11-03 00:16

Plese, please ;-)

idaryl

Avatar: idaryl

2006-11-07 08:56

Any updates - yet?

Back to top
about us | contact