This could be a setup issue with VirtualMerchant. Do you have Internet transactions enabled on your account. Often this error will come up when your account is only setup for MOTO.
In the function msgResultTests() below the following code segment:
Put the following code:
So it should read:
This will print out results.
Hi Zelf thanks for reply.
The problem is with "Internet transactions enable" in merchant account.
After enabling it in merchant account,it gives error :
"Error Message(s): 4009. Required Field Not Supplied. The field Sales Tax (ssl_salestax) required but not supplied in the authorization request."
so then I added one lin in chargeit.php
in function before_process()
first I add $currencies object in "global $_POST, $order;"
then I add one line for ssl_salestax
first I find this code
$this->submit_data = array (
// Transaction settings
ssl_merchant_id => MODULE_PAYMENT_CHARGEIT_ACCOUNT_ID, // The login name as assigned to you by Virtual Merchant
ssl_user_id => MODULE_PAYMENT_CHARGEIT_USER_ID, // The login name you setup for your automated web transaction user
ssl_pin => MODULE_PAYMENT_CHARGEIT_PIN, // The pin that was auto assigned to this new user
ssl_transaction_type => 'CCSALE',
ssl_show_form => 'FALSE', // Process transaction directly
ssl_result_format => 'ASCII', // DO NOT CHANGE. The formatting type for result messages from Virtual Merchant
// Transaction Info
ssl_amount => number_format($order->info['total'], 2),
after this I add one line
ssl_salestax => number_format($order->info['tax'] * $currencies->get_value('USD'), 2, '.',','),
after that It runs successfully in test mode. Now I will try for production mode.
So zelf if I have done anything wrong then plz reply me.
Thanks again for your support.