Jump to content

External URL Script


Dillu

Recommended Posts

Dear Peoples,

 

I have to point this script to Bank Urls ,which payments are different for each package the customer will buy,

 

I am using this script, but i can't add this script multiple times in payment gateway module, So i am restricted to show only 1 page. i want it to enable it multiple times so i will able to give different url for different product.

 

Please help

 

<?php

/*

* Simple External URL gateway module for WHMCS

* Free - GNU license

* © 2011 - Nasos Liagos - nasos75 at gmail dot com

* http://www.valuehost.com.gr

*/

function externalurl_config() {

$configarray = array(

"FriendlyName" => array("Type" => "System", "Value"=>"External URL"),

"URL" => array("FriendlyName" => "URL", "Type" => "text", "Size" => "60", "Description" => "Enter the full external URL (ie https://www.mybank.com/client.pay)", ),

"URLtext" => array("FriendlyName" => "Label", "Type" => "text", "Size" => "60", "Description" => "Enter the label for the link (ie Click here for mybank payment)", ),

"URLtarget" => array("FriendlyName" => "Target", "Type" => "text", "Size" => "20", "Value" => "_blank", "Description" => "Enter the target when link is selected (ie _blank)", ),

);

return $configarray;

}

 

function externalurl_link($params) {

 

$code = '<a href ="'.$params['URL'].'" target="'.$params['URLtarget'].'">'.$params['URLtext'].'</a>';

 

return $code;

}

?>

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