Transition Posted March 22, 2007 Posted March 22, 2007 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! Quote
Guest Posted March 23, 2007 Posted March 23, 2007 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? Quote
Recommended Posts
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.