Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I'm working with checkout_payment.php and the authorizenet.php class (/includes/modules/payment/). When a user submits invalid credit card data, I am storing the data the user entered (encrypted of course) in the session by setting it in the authorizenet.php class (in the pre_confirmation_check method). The problem I having is that I have to set the variable using the $_SESSION superglobal, as doing tep_session_register("var_name") and then $var_name = "test" does not seem to work (the variable gets set in the session, but it's empty).

 

Once the data has been stored in the session, I am then trying to access it in checkout_payment.php to then prefill the credit card form fields, but this has some weird issues as well due to the session problem mentioned above. I'm getting a bit confused by all the odd session behaviour (specifically from within the authorizenet class) and the use of osComm globals.

 

If anyone can give me some insight into these session issues, it would be greatly appreciated.

 

Thanks!

Posted
I'm working with checkout_payment.php and the authorizenet.php class (/includes/modules/payment/). When a user submits invalid credit card data, I am storing the data the user entered (encrypted of course) in the session by setting it in the authorizenet.php class (in the pre_confirmation_check method). The problem I having is that I have to set the variable using the $_SESSION superglobal, as doing tep_session_register("var_name") and then $var_name = "test" does not seem to work (the variable gets set in the session, but it's empty).

 

Once the data has been stored in the session, I am then trying to access it in checkout_payment.php to then prefill the credit card form fields, but this has some weird issues as well due to the session problem mentioned above. I'm getting a bit confused by all the odd session behaviour (specifically from within the authorizenet class) and the use of osComm globals.

 

If anyone can give me some insight into these session issues, it would be greatly appreciated.

 

Thanks!

depends where and when you test the variable and if your sessions are valid. Under normal circumastance it should work.

 

Also you should not store cc details with the sessions as I don't know how many regulations you violate. Regardless of encryption of course, because from your saying seems you can un-encrypt that info at some point to use it isnt it?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...