Goldeneye512 Posted December 15, 2009 Share Posted December 15, 2009 Can anyone advise me on this? I have installed the Sagepay Form Module 1-20-1 and all works in the simulator but not on the live server. I am getting an error payment page (on the sagepay server) saying MALFORMED. Then status "Amount is required" It's something to do with this code in sagepay_form.php around line 211. In the failed transaction reports I am getting: VENDORNAMEAmount=2.93 The amount should not be joined as part of the string but part of the next field. The word amount shouldn't be in the string at all. It should be VENDORNAME and 2.93 in the next field. This is the code and there is something in this like an "&" that is joining the vendor name and the amount. $plain = "VendorTxCode=" . MODULE_PAYMENT_SAGEPAY_FORM_VENDOR_NAME . date('YmdHis') . $customer_id . "&"; $plain .= "Amount=" . number_format($order->info['total'] * $currencies->get_value($sagepay_currency), $currencies->get_decimal_places($sagepay_currency), '.', '') . "&"; $plain .= "Currency=" . $sagepay_currency . "&"; $plain .= "Description=" . "Goods bought from " . STORE_NAME . "&"; $plain .= "SuccessURL=" . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true) . "&"; $plain .= "FailureURL=" . tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true) . "&"; $plain .= "CustomerName=" . $order->billing['firstname'] . ' ' . $order->billing['lastname'] . "&"; $plain .= "CustomerEmail=" . $order->customer['email_address'] . "&"; $plain .= "VendorEMail=" . STORE_OWNER_EMAIL_ADDRESS . "&"; Any help would be appreciated. Heath :) Experienced in MySQL and PHP. I am always willing to help if you require a quick answer but please note that any work I do for you has to be charged for and pre-paid via PayPal. Sorry but I spend so much time helping others that I have less time for my own business. Please only ask for my assistance if you are willing to pay for my time. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.