Jump to content

cash payment gateway not returning to invoice


johnef_sh

Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated