Jump to content

taiter

Members
  • Content count

    11
  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    Tai
  1. taiter

    ViaKlix Problem...

    SOLUTION!!! (Again) It appears that something has changed with the way viaklix processes the data. You no longer have to send the session ID as a seperate parameter, the viaKLIX machine will process it through the referral URL which already has the session ID in it. To fix this issue, you simply have to comment out the following line: 220 $process_button_string .= tep_draw_hidden_field(tep_session_name(), tep_session_id()); It should work fine. You still need to have the session ID forwarded to your approval URL - see the earlier posts in this topic for instructions. If you continue to have problems, you might need to change your session ID to all CAPITAL letters. The other thing that viaklix has changed is that it capitalizes all of the parameter names when it sends them back to the url. If you need help with this, just let me know. -Tai Graham
  2. taiter

    ViaKlix Problem...

    For those still having problems - we noticed errors in a clients shopping cart recently. After spending ALL day on the phone with viaKLIX without resolution, I beleive that viaKLIX is erroneously appending data onto the return URL. The problem seems to lie here: checkout the URL that my site is trying to return to. https://www.glowing-sticks.com/checkout_process.php?ssl_result=0&ssl_result_message=APPROVED&ssl_cvv2_response=P&ssl_avs_response=X&ssl_txn_id=00000000%2D0000%2D0000%2D0000%2D000000000000&ssl_txn_time=11%2F13%2F2005+6%3A26%3A23+PM&ssl_approval_code=123456&ssl_transaction_type=SALE&ssl_amount=0%2E18&ssl_customer_code=6&ssl_salestax=0%2E00&ssl_invoice_number=&ssl_description=&OSCSID=390129810e2e87476f7800ba895b45eb%2C+390129810e2e87476f7800ba895b45eb&ssl_company=Blue+Line+Web+Solutions&ssl_first_name=Tai&ssl_last_name=Graham&ssl_avs_address=1421+7th+Avenue&ssl_address2=&ssl_city=Sacramento&ssl_state=California&ssl_avs_zip=95818&ssl_country=United+States&ssl_email=tai%40blwebsolutions%2Ecom&ssl_phone=916%2D231%2D6660&ssl_ship_to_company=&ssl_ship_to_first_name=Tai&ssl_ship_to_last_name=Graham&ssl_ship_to_avs_address=&ssl_ship_to_address2=&ssl_ship_to_city=Sacramento&ssl_ship_to_state=California&ssl_ship_to_avs_zip=&ssl_ship_to_country=United+States&ssl_ship_to_phone=& I am also getting an error that looks like this: 1062 - Duplicate entry '390129810e2e87476f7800ba895b45eb' for key 1 insert into sessions values ('390129810e2e87476f7800ba895b45eb, 390129810e2e87476f7800ba895b45eb', '1131925366', 'cart|O:12:\"shoppingcart\":5:{s:8:\"contents\";a:0:{}s:5:\"total\";i:0;s:6:\"weight\";i:0;s:12:\"content_type\";b:0;s:13:\"total_virtual\";i:0;}language|s:7:\"english\";languages_id|s:1:\"1\";currency|s:3:\"USD\";navigation|O:17:\"navigationhistory\":2:{s:4:\"path\";a:1:{i:0;a:4:{s:4:\"page\";s:20:\"checkout_process.php\";s:4:\"mode\";s:3:\"SSL\";s:3:\"get\";a:35:{s:10:\"ssl_result\";s:1:\"0\";s:18:\"ssl_result_message\";s:8:\"APPROVED\";s:17:\"ssl_cvv2_response\";s:1:\"P\";s:16:\"ssl_avs_response\";s:1:\"X\";s:10:\"ssl_txn_id\";s:36:\"00000000-0000-0000-0000-000000000000\";s:12:\"ssl_txn_time\";s:21:\"11/13/2005 6:26:23 PM\";s:17:\"ssl_approval_code\";s:6:\"123456\";s:20:\"ssl_transaction_type\";s:4:\"SALE\";s:10:\"ssl_amount\";s:4:\"0.18\";s:17:\"ssl_customer_code\";s:1:\"6\";s:12:\"ssl_salestax\";s:4:\"0.00\";s:18:\"ssl_invoice_number\";s:0:\"\";s:15:\"ssl_description\";s:0:\"\";s:6:\"OSCSID\";s:66:\"390129810e2e87476f7800ba895b45eb, 390129810e2e87476f7800ba895b45eb\";s:11:\"ssl_company\";s:23:\"Blue Line Web Solutions\";s:14:\"ssl_first_name\";s:3:\"Tai\";s:13:\"ssl_last_name\";s:6:\"Graham\";s:15:\"ssl_avs_address\";s:15:\"1421 7th Avenue\";s:12:\"ssl_address2\";s:0:\"\";s:8:\"ssl_city\";s:10:\"Sacramento\";s:9:\"ssl_state\";s:10:\"California\";s:11:\"ssl_avs_zip\";s:5:\"95818\";s:11:\"ssl_country\";s:13:\"United States\";s:9:\"ssl_email\";s:22:\"tai@blwebsolutions.com\";s:9:\"ssl_phone\";s:12:\"916-231-6660\";s:19:\"ssl_ship_to_company\";s:0:\"\";s:22:\"ssl_ship_to_first_name\";s:3:\"Tai\";s:21:\"ssl_ship_to_last_name\";s:6:\"Graham\";s:23:\"ssl_ship_to_avs_address\";s:0:\"\";s:20:\"ssl_ship_to_address2\";s:0:\"\";s:16:\"ssl_ship_to_city\";s:10:\"Sacramento\";s:17:\"ssl_ship_to_state\";s:10:\"California\";s:19:\"ssl_ship_to_avs_zip\";s:0:\"\";s:19:\"ssl_ship_to_country\";s:13:\"United States\";s:17:\"ssl_ship_to_phone\";s:0:\"\";}s:4:\"post\";a:0:{}}}s:8:\"snapshot\";a:4:{s:4:\"page\";s:20:\"checkout_payment.php\";s:4:\"mode\";s:3:\"SSL\";s:3:\"get\";N;s:4:\"post\";N;}}affiliate_ref|N;affiliate_clickthroughs_id|N;') I think the bulk of the problem lies in how viaKLIS is appending the session ID: OSCSID=390129810e2e87476f7800ba895b45eb%2C+390129810e2e87476f7800ba895b45eb NOTICE that it is appended twice with funky characters in the middle. For sh#ts and giggles, if you take that session ID and appened it to checkout_process.php?OSCSID=foobar You get the correct success page. If you would like to test and see if you are getting a CRAZY URL, you can dowload some editted checkout files from http://www.blwebsolutions.com/TESTCheckoutFiles.zip . Be sure to make backups of your original files. All I have done here is stop any tep_redirects. This allows me to see the address that it's looking for in the address bar of the browser. Otherwise, you keep getting kicked back to the login screen and you'll have no idea what is going on!! I'l be talking to viaKLIX again tomorrow to see what is going on, I'm pretty sure they changed something and decided not to tell anyone. -Tai
  3. taiter

    [Contribution] UPS XML Tracking

    What IS the code in your address bar that doesn't work. That information would be very helpful is solving your problem. You are probably not sending the right parameters to your browser. I got this working GREAT - but it was quite a while ago, I'll help if I can. -Tai
  4. taiter

    ViaKlix Problem...

    SOLUTION!!! Ok, I have figured out the problem. Apparently the processor that Viaklix uses chokes when you have variables in your return URL. For those of you who don't know anything after the ? in a URL is a variable that is being passed by the URL. By default, the return URL has the Session ID as one of the variables it is trying to send back. Since this is not allowed (although the dev team at Viaklix has been notified of the problem and they are going to fix it - who knows when), you have to change a few things around in the code to make this work. You also have to set up a new variable in your terminal. I'll explain how to do this below. 1) In your file includes/modules/payment/viaklix.php, edit the following lines: Setting the true/false switch on the return URL's defines whether or not you append the session ID to the URL. We don't have to b/c we are going to send it as a hidden form field as you can see on line 220. 2) Go into your Viaklix module and click on Terminal Setup -> Payment Form Field Setup 3) Under Order Information, click on Add New Field (it's kind of hard to see, but it's there) 4) Add a new field with the Name osCsid (CASE SENSITIVE - DOUBLE CHECK - when I first added this field it removed the capital C for me, which I had to go back and change) 5) Change the MAx Characters to 100 and leave every box unchecked except for "Forward on Approval" and "Forward on Decline" Save your settings and your module will work just fine. If you prefer the user to go the viaklix site before they finalize their sale, you can just change REDG to LINK. I have seen MANY posts on this problem - maybe someone will make this a viaklix sticky or something :-) -Tai
  5. taiter

    ViaKlix Problem...

    Mor information: Instead of completing the checkout, I am directed to the login page with a url that looks like: https://www.glowing-sticks.com/BETA/login.php?osCsid=f92fb20b6fca1f7128e67566a0c660e4?ssl_result=0 And I have the Dupliacte session erros as well: 1062 - Duplicate entry 'f92fb20b6fca1f7128e67566a0c660e4' for key 1 insert into sessions values ('f92fb20b6fca1f7128e67566a0c660e4?ssl_result=0', '1117643605', 'cart|O:12:\"shoppingcart\":4:{s:8:\"contents\";a:0:{}s:5:\"total\";i:0;s:6:\"weight\";i:0;s:12:\"content_type\";b:0;}language|s:7:\"english\";languages_id|s:1:\"1\";currency|s:3:\"USD\";navigation|O:17:\"navigationhistory\":2:{s:4:\"path\";a:1:{i:0;a:4:{s:4:\"page\";s:9:\"login.php\";s:4:\"mode\";s:3:\"SSL\";s:3:\"get\";a:1:{s:6:\"osCsid\";s:45:\"f92fb20b6fca1f7128e67566a0c660e4?ssl_result=0\";}s:4:\"post\";a:0:{}}}s:8:\"snapshot\";a:0:{}}affiliate_ref|N;affiliate_clickthroughs_id|N;') More of what I have tried and DID NOT work: 5) Stripping the session ID out of the redirect URL - This STILL brings me back to the login page instead of completing my transaction - but the error is gone. Any suggestions? I am at my wits end here. -Tai
  6. taiter

    ViaKlix Problem...

    SERIOUS BUMP..... I had the viaklix modules working PERFECTLY. I don't understand what has happened. When I Go to checkout - I get to the confirmation process and click on confirm order. At which point there is a Runtime Error. Ther eerror is: When I highlight the line in a debugger, I get the following information: The line it stops at is: (I'll seperate out these fields for readability - but they are all in one line) <form name="checkout_confirmation" action="https://www.viaKLIX.com/process.asp" method="post" onsubmit="return checkCheckBox(this)"> <input type="hidden" name="ssl_merchant_id" value="XXXXXXX"> <input type="hidden" name="ssl_user_id" value="XXXXXXX"> <input type="hidden" name="ssl_pin" value="XXXXXXX"> <input type="hidden" name="ssl_amount" value="1.00"> <input type="hidden" name="ssl_salestax" value="0.00"> <input type="hidden" name="ssl_show_form" value="FALSE"> <input type="hidden" name="ssl_card_number" value="XXXXXXX"> <input type="hidden" name="ssl_transaction_type" value="SALE"> <input type="hidden" name="ssl_exp_date" value="XXXX"> <input type="hidden" name="ssl_cvv2" value="Present"> <input type="hidden" name="ssl_cvv2cvc2" value="XXX"> <input type="hidden" name="ssl_customer_code" value="6"> <input type="hidden" name="ssl_company" value="Some Company"> <input type="hidden" name="ssl_first_name" value="Bob"> <input type="hidden" name="ssl_last_name" value="Graham"> <input type="hidden" name="ssl_avs_address" value="123 Any St."> <input type="hidden" name="ssl_city" value="Sacramento"> <input type="hidden" name="ssl_state" value="California"> <input type="hidden" name="ssl_avs_zip" value="12345"> <input type="hidden" name="ssl_country" value="United States"> <input type="hidden" name="ssl_phone" value="916-123-4567"> <input type="hidden" name="ssl_email" value="bob@somecompany.com"> <input type="hidden" name="ssl_ship_to_first_name" value="Bob"> <input type="hidden" name="ssl_ship_to_last_name" value="Graham"> <input type="hidden" name="ssl_ship_to_address" value="123 Any St."> <input type="hidden" name="ssl_ship_to_city" value="Sacramento"> <input type="hidden" name="ssl_ship_to_state" value="California"> <input type="hidden" name="ssl_ship_to_zip" value="12345"> <input type="hidden" name="ssl_ship_to_country" value="United States"> <input type="hidden" name="ssl_result_format" value="HTML"> <input type="hidden" name="ssl_receipt_apprvl_method" value="REDG"> <input type="hidden" name="ssl_receipt_decl_method" value="REDG"> <input type="hidden" name="ssl_receipt_apprvl_get_url" value="https://www.glowing-sticks.com/BETA/checkout_process.php?osCsid=732612b0c76184e8e8805f41e0a19c19"> <input type="hidden" name="ssl_receipt_decl_get_url" value="https://www.glowing-sticks.com/BETA/checkout_payment.php?payment_error=viaklix&viaklix_cc_owner=Bob+Graham&passedvars=coming&osCsid=732612b0c76184e8e8805f41e0a19c19"> Here is what I have tried and DID NOT work: 1) Emptying the mysql sessions table (this is a test store so this IS only one session at a time: MINE) 2) YES my session storage is 'mysql' - it's a MySQL error (no offense, but DUH) 3) Config.php file. I have installed a thousand osC stores, I am SURE the config file is correct in both the catalog and the admin 4) Using the LINK option is not an option, although is DOES work. (I still get the debug error - so I'm guessing the two are not related) Here is what I want to try: 1) Stripping the session ID out or the redirect URL - anybody try this? Any suggestions? -Tai
  7. taiter

    [Contribution] UPS XML Tracking

    Can you share this information? That would be AWESOME ;-) -Tai
×