Jump to content

Clone Payment Bank Transfer


denial

Recommended Posts

i need to offer many banks options is there posible to duplicate the bank transfer module?

 

at the end a friend of mine make a light module.... to get a second Bank Transfer Module :B

 

 

create:

banktransfer1.php

 

and use this code:

 

<?php
function banktransfer1_config(){
   $configarray = array(
       "FriendlyName" => array("Type" => "System", "Value"=>"Bank Transfer (1)"),
       "instructions" => array("FriendlyName" => "Bank Transfer Instructions", "Type" => "textarea", "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 banktransfer1_link($params) {
   return nl2br($params['instructions']);
}
?>

 

and to get a third Bank Transfer create:

banktransfer2.php

 

and use this code:

 

<?php
function banktransfer2_config(){
$configarray = array(
	"FriendlyName" => array("Type" => "System", "Value"=>"Bank Transfer (2)"),
	"instructions" => array("FriendlyName" => "Bank Transfer Instructions", "Type" => "textarea", "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 banktransfer2_link($params) {
return nl2br($params['instructions']);
}
?>

 

 

 

etc....

 

(I hope this post is move to Tips, Tricks & Howto's bcus it really help me)

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