Zen Cart Logo
Forums / Addon Payment Modules / Costly $ Viaklix problem and a solution

Costly $ Viaklix problem and a solution

Locked

Views: 1,677

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
19 Jun 2007, 12:10 AM
#1
robc avatar

robc

New Zenner

Join Date:
Jun 2007
Posts:
11
Plugin Contributions:
0

Costly $ Viaklix problem and a solution

There seems to be either a bug in the viaklix payment module or a misunderstanding of how viaklix works and charges the client (or both).

According to Viaklix support, and confirmed twice by others in Viaklix, the ssl_customer_code field that is placed within:

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

Is actually meant to return the code of the type of card the customer is using. For those of us who are using the usual clients that we would normally meet, i.e. not fleet cards, not governments or others like that, the code should be 1111. When it is anything but this, the status of the transaction is degraded to some extent and this can increase the charges to the client!!!! Therefore the support personel at Viaklix say it is important to enter this code number, 1111, for each transaction.

We now have a conflict as the script uses this field for something else, namely, the internal shop customer id.

It can be fixed in this way. Replace:

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

With:

zen_draw_draw_hidden_field('ssl_customer_id', $_SESSION['customer_id']) .
zen_draw_draw_hidden_field('ssl_customer_code','1111') .

It returns the proper values in the shopkeeper's receipt and according to Viaklix this confirms it is done correctly.

19 Jun 2007, 1:16 AM
#2
robc avatar

robc

New Zenner

Join Date:
Jun 2007
Posts:
11
Plugin Contributions:
0

Re: Costly $ Viaklix problem and a solution

Ooops, forgot to say something VERY important.

One has to log onto the viaklix.com site as administrator and go to terminal setup --> Payment Field Set Up --> and under 'Order Information' add a field called, 'Shop Customer ID' ' No ' 'ssl_customer_id' as this will allow you to pass the customer id as another field and it will appear in your receipt.

Sorry about that!

19 Jun 2007, 1:31 AM
#3
robc avatar

robc

New Zenner

Join Date:
Jun 2007
Posts:
11
Plugin Contributions:
0

Re: Costly $ Viaklix problem and a solution

Are you finding out that your viaklix out of the box payment module is charging you 100x what you entered? You put in a transaction of $12.80 and the card is charged for $1280? Well, that is what happens if you just use the script as it is. As there were no texts I could find in this forum that addresses this error, I found a thread in the oscommerce forum that does address it. (this error is found in the same module as the ssl_customer_code error)

http://forums.oscommerce.com/index.php?showtopic=113859

Simply replace the tep with zen_draw as in:

zen_draw_hidden_field('ssl_amount', number_format($order->info['total'] * $currencies->get_value('USD'), 2, '.', '')) .
zen_draw_hidden_field('ssl_salestax', number_format($order->info['tax'] * $currencies->get_value('USD'), 2)) .

And it works fine!