Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Paysystems module help needed


Ceres

Recommended Posts

I am getting a strange issue when using the paysystems module. Here is the progression of events:

 

1. Get to the confirmation section of my site (in my case it redirects the user to the Paysystems gateway)

 

2. The user enters in their credit card data and gets approved and so forth

 

3. The gateway redirects them back to my site where it is supposed to finish the transaction (checkout_process.php?cc_status=pass probably) but instead of getting the whole "Thanks for shopping with us" page, they get the customer login screen again. The customer logs in and then they can shot right back to their STILL FULL shopping cart checkout page.

 

It sounds like a session error of some sort but has anyone here encountered this type of problem before? I've tried everyone I know how to do and I am running out of options. I am using Paysystems module version 1.2a on osC 2.2 MS1.

 

Your help is appreciated,

 

Ceres

Link to comment
Share on other sites

Well, I guess I solved this problem with the help of Michael Sasek. In the spirit of community, I'll just post how this problem was solved (and hopefully save someone else with this problem a few dollars and a few days):

 

First thing I did after I realized that I was being charged $1 for every test transaction I made ($15 dollars down the drain :evil:) is I downloaded the source for the Paysystems page that did the redirect. Even doing the downloading cost me a buck since you can't get to that page without doing a valid transaction. The upside to this is that I could now do as many redirects I wanted without worrying about making myself poor. Looking back, I might have just been able to create a help desk ticket and they might have given me some free test transactions. But in case you can't do this or they won't give it to you, here is how I tested:

 

1. Buy an item on my site

2. Checkout and go all the way to the confirmation page (the page right before you get redirected to the Paysystems site)

3. Copy the osCsid from this session

4. Open up the downloaded Paysystems page in your favorite editor

5. Use the osCsid from step 3 and put it into the appropriate section of the page (you can alternatively change whatever else you want in that page as well such as the redirect timer and such)

6. Open up the edited page from step 5 and see what happens

 

My solution to my problem:

 

1. Go into the Paysystems module (catalog/includes/modules/payment/paysystems.php) and look for:

tep_draw_hidden_field('formget','Y') .

tep_draw_hidden_field('redirect',tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false)) .

tep_draw_hidden_field('redirectfail',tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', false)) .

and change this to:

tep_draw_hidden_field('formget','N') .

tep_draw_hidden_field('redirect',tep_href_link(FILENAME_CHECKOUT_PROCESS, 'cc_status=pass', 'SSL', true)) .

tep_draw_hidden_field('redirectfail',tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL', true)) .

 

2. Test it out

 

From what Michael told me, this seems to be a problem specific to shared SSL (since sessions are not registered as cookies on shared SSL servers). Since the Paysystems server does not return the oscSid when it does it's redirect, I had to pass the osCsid on as part of the redirect string. I'm still not sure why I had to use the "post" method for this to work (formget = N) so if anyone can shed some light on this it would be appreciated.

 

Thanks,

 

Ceres

 

edited by Johnson

Link to comment
Share on other sites

  • 1 month later...
The oscSid should be in the location bar in your browser. Might look something like:

 

 

Ceres

That's what I have thought, but my location bar only shows the following:

 

http://www.mysite.com/catalog/catalog/checkout_confirmation.php

 

Is there something wrong with my shop?

And I'm using osC 2.2 MS1.

 

UPDATE ----

 

Is it because I don't have the 128-bit SSI feature?

Edited by xuechao
Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...