Hi Anyone else suddenly (today 17th May 2005) seen Protx rejecting payments? We have tracked this down to the price not having two decimal places. We have prices like 40 and 62, with no pence Although the price looks find everywhere else in aMember Pro, its in the protx.inc.php plugin where it goes wrong. We see Amount=40 Currency=GBP no .00 on the end of 40. The Protx Integration Guide says Amount Numeric. 1.00 to 100,000.00 Amount for the Transaction containing minor digits formatted to 2 decimal places where appropriate. Must be positive and numeric, and may include a decimal place where appropriate. Minor digits should be formatted to two decimal places. e.g. 5.10, or 3.29. Values such as 3.235 will be rejected. So I changed protx.inc.php to $varsc = array( 'VendorTxCode' => $payment_id . 'AMEMBER', 'Amount' => number_format($price, 2, '.', ''), // 'Amount' => $price, 'Currency' => 'USD', 'Description' => $product->config['title'], 'SuccessURL' => $config['root_url'] . "/plugins/payment/protx/thanks.php", 'FailureURL' => $config['root_url'] . "/cancel.php", 'CustomerEmail' => $u['email'], 'VendorEmail' => $config['admin_email'], 'CustomerName' => $u['name_f'] . ' ' . $u['name_l'], ); and it all started working. Cheers Russell
I added this to aMember Pro CVS and it will be released with the next version of aMember. If anyone expiriences the same trouble, please use above suggestion. Russell, Thank you very much!
Protx suddenly gone crazy? Hi all its Sept 28th 2005. Has anyone else noticed lots of errors from Protx during the payment process. Usually we get SuccessURL / FailureURL missing errors. We have changed nothing in our code so its all very strange. Cheers Russell