Forums / Addon Payment Modules / ViaKlix Module Help

ViaKlix Module Help

Locked

Views: 5,996

Results 1 to 18 of 18
This thread is locked. New replies are disabled.
10 May 2006, 5:40 PM
#1
dmussari avatar

dmussari

New Zenner

Join Date:
May 2006
Posts:
5
Plugin Contributions:
0

ViaKlix Module Help

I need some help with the ViaKlix Payment Processor Module. I Found the module here
http://www.modyourzencart.com/index.php?main_page=product_info&products_id=8

I installed everthing and it works up until the point of the final confirmation. When I hit the button to confirm the order (in test mode) it sends the info to the ViaKlix terminal.

The problem is that it returns the cart to a Time out session page. The other problem is that the cart hasn't created the transaction as cofirmed within the database. So the cart is still storing the items. It doesn't clear the items for the user.

Are there bugs with this module? Anybody who is using ViaKlix, please come in and give me some advice. I'm hitting a brick wall with this. Are here updates to this? Fixes? Do I need to do something with ViaKlix to fix this

Thanks.

**** EDITED *** Never ever post in a forum, email, newsletter etc. the zenid or zenAdminID or you will be doomed!!** :eek:

15 May 2006, 5:40 PM
#2
hrm avatar

hrm

New Zenner

Join Date:
Oct 2005
Posts:
95
Plugin Contributions:
0

Re: ViaKlix Module Help

Any news on the new module? I'm having problems with the old one and if the new mod is coming out soon, then I'll just wait.

Thanks,
Heather

Heather
Results! Why, man, I have gotten a lot of results.
I know several thousand things that won't work.
----Thomas Edison

16 May 2006, 6:27 AM
#3
shmegma avatar

shmegma

New Zenner

Join Date:
Nov 2005
Posts:
24
Plugin Contributions:
0

Re: ViaKlix Module Help

I am having the exact same problem. The charge actually goes through the viaklix system but zencart comes back with this error:

Login Time Out
We're sorry but for your protection, due to the long delay while either checking out, or on a secure page, the session has timed out.

If you were placing an order, please Login and your Shopping Cart will be restored. You may then go back to the Checkout and complete your final purchases.

If you had completed an order and wish to review it, or had a download and wish to retrieve it, please go to your My Account page to view your order.

And zencart does not recognize that an order has been placed.

Any help PLEASE!

7 Jun 2006, 9:40 PM
#4
ctoscano avatar

ctoscano

New Zenner

Join Date:
Jun 2006
Posts:
3
Plugin Contributions:
0

Re: ViaKlix Module Help

I have the exact same problem as shmegma describes. A solutions would be greatly appreciated.

Can someone describe or explain how does the ZenCart know or find out that the credit card went through?

I'm having my credit card gateway redirect the clients back to my website. This is what it is doing now: (I am using a shared certificate for now)

<form action="https://xxx.xxx.com/~xxx/index.php?main_page=checkout_process" method="GET">
<input type="hidden" name="ssl_result" value="0">
<input type="hidden" name="ssl_result_message" value="APPROVED">
<input type="hidden" name="ssl_txn_id" value="F4D6DDC6-5504-4BA9-A2EE-BCD5AC0B68A1">
<input type="hidden" name="ssl_approval_code" value="xxxxxx">
<input type="hidden" name="ssl_cvv2_response" value="M">
<input type="hidden" name="ssl_avs_response" value="Y">

<input type="hidden" name="ssl_transaction_type" value="SALE">
<input type="hidden" name="ssl_amount" value="1.00">
<input type="hidden" name="ssl_customer_code" value="1">
<input type="hidden" name="ssl_salestax" value="0">
<input type="hidden" name="ssl_invoice_number" value="">
<input type="hidden" name="ssl_description" value="">
<input type="hidden" name="zenid" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">
<input type="hidden" name="ssl_company" value="">
<input type="hidden" name="ssl_first_name" value="xxxx">
<input type="hidden" name="ssl_last_name" value="xxxxx">
<input type="hidden" name="ssl_avs_address" value="xxxxxxxxx">
<input type="hidden" name="ssl_address2" value="">
<input type="hidden" name="ssl_city" value="xxxxx">
<input type="hidden" name="ssl_state" value="xxxxxxxx">
<input type="hidden" name="ssl_avs_zip" value="xxxxx">
<input type="hidden" name="ssl_country" value="United States">
<input type="hidden" name="ssl_email" value="[email protected]">

<input type="hidden" name="ssl_phone" value="0000000000">
<input type="hidden" name="ssl_ship_to_company" value="">
<input type="hidden" name="ssl_ship_to_first_name" value="test">
<input type="hidden" name="ssl_ship_to_last_name" value="tester">
<input type="hidden" name="ssl_ship_to_avs_address" value="">
<input type="hidden" name="ssl_ship_to_address2" value="">
<input type="hidden" name="ssl_ship_to_city" value="TEST">
<input type="hidden" name="ssl_ship_to_state" value="xxxxxx">
<input type="hidden" name="ssl_ship_to_avs_zip" value="">
<input type="hidden" name="ssl_ship_to_country" value="United States">
<input type="hidden" name="ssl_ship_to_phone" value="">
8 Jun 2006, 6:18 AM
#5
ctoscano avatar

ctoscano

New Zenner

Join Date:
Jun 2006
Posts:
3
Plugin Contributions:
0

Re: ViaKlix Module Help

After a lot of experimentation and reading the Viaklix documentation, etc etc etc, I found out that the redirect get method returns the client to the following url:

...index.php?main_page=checkout_process?ssl_result=0&ssl_result_message...

the problem is with the ? after the checkout_process. It should be a & as shown:

...index.php?main_page=checkout_process&ssl_result=0&ssl_result_message...

if you try it, get the observed error, then make the change, it takes you to the correct screen and everything is processed appropriately. The question now is how to correct the mistake before it happens.

...

I found a solution.

The following code needs to be modified in the viaklix payment moduel (includes\modules\payment\viaklix.php)

zen_draw_hidden_field('ssl_result_format', 'HTML') .
    														zen_draw_hidden_field('main_page', 'checkout_process') .
    														zen_draw_hidden_field('ssl_receipt_apprvl_method', 'REDG') .
    														zen_draw_hidden_field('ssl_receipt_decl_method', 'REDG') .
    														zen_draw_hidden_field('ssl_receipt_apprvl_get_url', zen_href_link(FILENAME_DEFAULT, '', 'SSL', FALSE)) .
    														zen_draw_hidden_field('ssl_receipt_decl_get_url', zen_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=' . $this->code . '&viaklix_cc_owner=' . urlencode($_POST['viaklix_cc_owner']) . '&passedvars=coming' , 'SSL', FALSE));
if (MODULE_PAYMENT_VIAKLIX_TESTMODE == 'Test') $process_button_string .= zen_draw_hidden_field('ssl_test_mode', 'TRUE');
    														//$process_button_string .= zen_draw_hidden_field(zen_session_name(), zen_session_id());

Also, you need to make changes on the viaklix side.

Go to Terminal Setup -> Payment Form Field Setup

In the Order Information section, select "Add New Field"

make the name and display name "zenid"; Max char 100; ONLY leave the bottom two boxes checked; select "create field"

Add another field.
mae the name and display name "main_page"; max char 50; ONLY leave second to last box checked; select create field

Credit: I looked at OSCommerce support forums a bit. They had a similar problem and solved it their, but it took a lot of reading and trial and error.

you can checkout my cart at https://www.icaptech.com. I'm proud of it, and the product.

10 Jul 2006, 3:27 PM
#6
lulagirl avatar

lulagirl

New Zenner

Join Date:
Apr 2006
Posts:
4
Plugin Contributions:
0

Re: ViaKlix Module Help

This was very helpful to me. Thank you!

I am still having one problem with this module. Namely, the variable $customer_id for the viaKlix ssl_customer_code field is not being passed. Has anyone else had this problem? I've not yet been able to figure out why the varialbe isn't showing up.

10 Jul 2006, 7:25 PM
#7
lulagirl avatar

lulagirl

New Zenner

Join Date:
Apr 2006
Posts:
4
Plugin Contributions:
0

Re: ViaKlix Module Help

Update:

I was able to fix this with a little bit of tweaking. In the function process_button(), I added $_SESSION to my list of globals. Then I changed the line:

 zen_draw_hidden_field('ssl_customer_code', $customer_id) .

with this line:

 zen_draw_hidden_field('ssl_customer_code', $_SESSION['customer_id']) .

Thought I'd mention it in case anyone else has this same problem.

14 Jul 2006, 8:59 PM
#8
angel_devoid avatar

angel_devoid

New Zenner

Join Date:
May 2006
Posts:
55
Plugin Contributions:
0

Re: ViaKlix Module Help

https://www.modyourzencart.com

The module located at the url above is currently unavailable due to some site redesign. Could some one please send private message with a new link or a way to email it to me.

Thanks

17 Jul 2006, 3:26 PM
#9
angel_devoid avatar

angel_devoid

New Zenner

Join Date:
May 2006
Posts:
55
Plugin Contributions:
0

Re: ViaKlix Module Help

I am in great need of the viaklix payment module. Could someone please send me the download. The creators web site doesnt have the download avaiable at this moment.

If any does have the download please send it here. [email protected]

Thank you.

19 Jul 2006, 3:28 PM
#10
angel_devoid avatar

angel_devoid

New Zenner

Join Date:
May 2006
Posts:
55
Plugin Contributions:
0

Re: ViaKlix Module Help

Hi
I took the time to put together an updated contribution here for the viaklix module. I have implemented the changes and instruction in this forum into the old module. So here is a link to the updated download

Credit to those that did the bulk of the code solutions are given in the read me file. If I left out anyone please let me know.

Hope it helps.
Angel Devoid

12 Mar 2007, 4:17 AM
#11
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: ViaKlix Module Help

Will this or is this module designed to work with 1.3.7?

Samuel Turnmire
co-Founder
geekFoundry

28 Mar 2007, 1:26 PM
#12
pinixdesign avatar

pinixdesign

New Zenner

Join Date:
Aug 2006
Posts:
30
Plugin Contributions:
0

Re: ViaKlix Module Help

I have installed the new module and everything is fine on the admin side of the setup but when I checkout Viaklix does not show up as a payment method option. I have the gateway set to "True" and the account information all filled in.

I'm sure I'm missing something very obvious. I uploaded both the files to the same directories.

Please help! I just don't understand what I did or didn't do! :down:

28 Mar 2007, 10:41 PM
#13
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: ViaKlix Module Help

Can you give me a link to the module you downloaded? I am not the original developer but I'll help if I can.

Also, do you mean that Klix doesn't show up as a payment method for your end users or in the admin area?

Samuel Turnmire
co-Founder
geekFoundry

28 Mar 2007, 10:54 PM
#15
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: ViaKlix Module Help

What version of Zen are you using?

Samuel Turnmire
co-Founder
geekFoundry

29 Mar 2007, 12:40 AM
#16
pinixdesign avatar

pinixdesign

New Zenner

Join Date:
Aug 2006
Posts:
30
Plugin Contributions:
0

Re: ViaKlix Module Help

It is version Version 1.2.6

30 Mar 2007, 8:42 PM
#17
pinixdesign avatar

pinixdesign

New Zenner

Join Date:
Aug 2006
Posts:
30
Plugin Contributions:
0

Re: ViaKlix Module Help

I wanted to post an update in case anyone else had the same problem. I remove the payment zone that I had set so it is now at --none-- and now the module shows up for the end user.

Thank you for all who tried to help

30 Mar 2007, 9:18 PM
#18
thepatch avatar

thepatch

Zen Follower

Join Date:
Sep 2006
Posts:
281
Plugin Contributions:
0

Re: ViaKlix Module Help

Thanks for the info, I had no clue on that one!

I'm using a more recent version of Zen, 1.3.7; I can't say how I know this but there's a new product coming out and Klix will be going by the way side; I was hoping to be able to update what's out there now

Samuel Turnmire
co-Founder
geekFoundry