johnef_sh Posted April 15, 2013 Share Posted April 15, 2013 Hi I wanted to make a cash payment gateway so what I did is I toke the banktransfer.php gateway and edit it to be cashpayment.php and changed the functions inside to imitate the new gateway like this. <?php # Bank Transfer Payment Gateway Module function cashtransfer_config() { $configarray = array( "FriendlyName" => array( "Type" => "System", "Value" => "Cash Transfer" ), "instructions" => array( "FriendlyName" => "Cash Transfer Instructions", "Type" => "textarea", "Rows" => "5", "Value" => "Bank Name:\nPayee Name:\nSort Code:\nAccount Number:", "Description" => "The instructions you want displaying to customers who choose this payment method - the invoice number will be shown underneath the text entered above", ), ); return $configarray; } function cashtransfer_link($params) { global $_LANG; $code = '<p>'.nl2br($params['instructions']).'<br />'.$_LANG['invoicerefnum'].': '.$params['invoiceid'].'</p>'; return $code; } ?> the thing is when the client click on check out it doesn't return to the invoice with the details it keep on loading and don't go to invoice any help please. 0 Quote Link to comment Share on other sites More sharing options...
freshwebmedia Posted April 16, 2013 Share Posted April 16, 2013 I am having a similar problem 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.