While setting up AlertPay Payment module in a osCommerce Store, I encountered following error “ap_shippingcharges field must be numeric” during a test purchase.
To fix this error, open catalog/includes/modules/payment/alertpay.php
Find this:
tep_draw_hidden_field('ap_shippingcharges', $order->info['shipping_cost']) .
Replace with this:
tep_draw_hidden_field('ap_shippingcharges', number_format($order->info['shipping_cost'], 2, '.', '')) .
I have also updated the AlertPay contribution on osCommerce website here.
Hope that helps.
Cheers!