Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

PSiGate Payment Problems


planet

Recommended Posts

Posted

I'm having problems with PSiGate. When I use the "teststore" ID, the checkout runs smoothly, the test card number goes through and then I get sent back to the checkout page. No completion on the processing....

 

Error appears as:

 

http://..../catalog/shopping_cart.php?Err=&ErrMsg=CC%2D4034%3A+No+ChargeTotal+provided%2E&OrdNo=

 

PSiGate replied with the following recommendation- "The formula is: Subtotal + TaxTotal + ShipTotal = FullTotal" or "Item Price Totals + TaxTotal + ShipTotal = FullTotal (If the item prices are used, the Subtotal is ignored)" referring to the data they require to process.

 

Any help would be appreciated!

Trevor

Posted

For those of you with similar problems, I found the problem. Some code needs to be changed in catalogincludesmodulespaymentpsigate.php.

 

The original code-

 

tep_draw_hidden_field('FullTotal', number_format($order->info['total'] * $currencies->get_value(MODULE_PAYMENT_PSIGATE_CURRENCY), 2)) .

 

needs to be changed to-

 

tep_draw_hidden_field('FullTotal', number_format($order->info['total'] . ' ' . $currencies->get_value(MODULE_PAYMENT_PSIGATE_CURRENCY), 2)) .

 

All fixed!

Trevor

Posted
For those of you with similar problems, I found the problem.  Some code needs to be changed in catalogincludesmodulespaymentpsigate.php.

 

The original code-

 

tep_draw_hidden_field('FullTotal', number_format($order->info['total'] * $currencies->get_value(MODULE_PAYMENT_PSIGATE_CURRENCY), 2)) .

 

needs to be changed to-

 

tep_draw_hidden_field('FullTotal', number_format($order->info['total'] . ' ' . $currencies->get_value(MODULE_PAYMENT_PSIGATE_CURRENCY), 2)) .

 

That's not correct. If you're using a currency with the value of 1.00000000 the end result will be:

 

number_format('30.00 1.00000000', 2) // 30.00 is the order total

 

You will need to look for the problem elsewhere.

 

My thoughts are that the MODULE_PAYMENT_PSIGATE_CURRENCY value is a currency that has 0 as the value, thus when the following is occuring:

 

number_format(order_total * currency_value, 2)

 

the order total will end up being 0.00.

 

Or perhaps MODULE_PAYMENT_PSIGATE_CURRENCY is not setup in your configuration due to using different CVS versions. Look this value up in the configuration table and see if its set - otherwise try reinstalling the module (click on the red icon and again on the green icon)

:heart:, osCommerce

Posted

Harald,

 

Thank you for your input. :D

 

1) I changed the code back to the original.

2) In the Admin, Localization, Currencies, I went through the settings and after updating, I clicked the "update currencies" button. Now I had a new problem- All products on wesite showing "0" for price. Prices were correct in the Admin.

3) Went back to currencies, changed Canadian Dollar code from "CDN", which was the default to "CAD" and PRESTO it works!

 

Once again thanks for the help and keep up the good work!

Trevor

  • 5 months later...
Posted

Sounds like I am having a similar problem, but this is what happens for me:

When I am in the checkout process (checkout_confirmation.php), I see the total and subtotal for the order I am trying to pay for. I then click on the order confirmation button to process the card (I am using the "teststorewithcard" merchant number) and I get the following error:

CC-4034: No ChargeTotal provided.

 

Any suggestions? I am using oscommerce-2.2ms1.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...