nasos75 Posted January 9, 2011 Share Posted January 9, 2011 In the process of customizing my WHMCS installation, I had the need to show in the payment options a URL so a user can select it and go to my bank's personal page and transfer funds to me. There was not a option like this, so I created my 1-line php module. Feel free to download it, as it is absolutely free. The module creates a link like this: <a href="yourURL" target="yourTarget">yourText</a> http://dl.dropbox.com/u/24243/externalurl.zip 0 Quote Link to comment Share on other sites More sharing options...
Zhang Posted July 17, 2011 Share Posted July 17, 2011 A very nice script indeed, any chance to get a non ioncubed version? I'd like to make it produce links with the ClientID or InvoiceID, a unencrypted version would help much with that ;-) 0 Quote Link to comment Share on other sites More sharing options...
nasos75 Posted August 3, 2011 Author Share Posted August 3, 2011 <?php /* * Simple External URL gateway module for WHMCS * Free - GNU license * (c) 2011 - Nasos Liagos - nasos75 at gmail dot com * 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; } ?> .................... 0 Quote Link to comment Share on other sites More sharing options...
nocdirecto Posted September 6, 2011 Share Posted September 6, 2011 No work fine in 4.5.2, page in blank 0 Quote Link to comment Share on other sites More sharing options...
nasos75 Posted September 7, 2011 Author Share Posted September 7, 2011 Probably you have misspelled the targeting URL. The 'module' is so simple that is impossible not to work, no matter which version of WHMCS you run. 0 Quote Link to comment Share on other sites More sharing options...
Dillu Posted January 5, 2012 Share Posted January 5, 2012 I want to use this script seperate for different products like Shared hosting go toward 1.htm and Reseller hosting go toward 2.htm , how to do it, if i am going to change any coding, its showing us White page. Simply i want to add this script multiple times in payment gateway 0 Quote Link to comment Share on other sites More sharing options...
nasos75 Posted January 7, 2012 Author Share Posted January 7, 2012 You can add it as many times as you want. Just change the filename... 0 Quote Link to comment Share on other sites More sharing options...
Dillu Posted January 7, 2012 Share Posted January 7, 2012 its not working if we will change the file name. even gateway page in whmcs will show blank page. 0 Quote Link to comment Share on other sites More sharing options...
nasos75 Posted January 7, 2012 Author Share Posted January 7, 2012 Did you change the function externalurl_config() function externalurl_link names to match your new filename? 0 Quote Link to comment Share on other sites More sharing options...
ryohnosuke Posted February 14, 2012 Share Posted February 14, 2012 White page on Client Area... and "invalid token" when I save configuration on Admin Panel. Saludos. 0 Quote Link to comment Share on other sites More sharing options...
kdompa Posted September 13, 2012 Share Posted September 13, 2012 White page on Client Area... and "invalid token" when I save configuration on Admin Panel. Saludos. I have the same problem! Any idea? Best regards! 0 Quote Link to comment Share on other sites More sharing options...
nasos75 Posted September 13, 2012 Author Share Posted September 13, 2012 The "module" is extremely simple, even the source code is not encrypted and you can see that there is no way that the code could cause any problems. You should check your setup! 0 Quote Link to comment Share on other sites More sharing options...
HostinPK Posted February 3, 2013 Share Posted February 3, 2013 Is this supported with latest WHMCS version? 5.1.3? 0 Quote Link to comment Share on other sites More sharing options...
nasos75 Posted February 3, 2013 Author Share Posted February 3, 2013 Yes, there shouldn't be any problems. The code is extremely simple and could merely called a "module". 0 Quote Link to comment Share on other sites More sharing options...
agarzon Posted April 22, 2013 Share Posted April 22, 2013 Your module help me a lot ! to create my own (a little more complex) Thanks you ! 0 Quote Link to comment Share on other sites More sharing options...
Pkwebhost Posted August 1, 2013 Share Posted August 1, 2013 After Save changes is show blank page but changes will apply and works fine 0 Quote Link to comment Share on other sites More sharing options...
bhabanisankar Posted October 31, 2013 Share Posted October 31, 2013 After clicking on checkout button, White page on Client Area.. I refresh it and it shows complete with a link to connect, but it does not auto redirect to payment gateway page. Can it be possible if click checkout it will redirect my desired payment gateway page. Any help will be appreciated and i like this module. 0 Quote Link to comment Share on other sites More sharing options...
nasos75 Posted October 31, 2013 Author Share Posted October 31, 2013 Did you fill all fields in the setup page? If you click 'view source' in the payment page, do you see the <a href=..> code filled correctly? 0 Quote Link to comment Share on other sites More sharing options...
camabhi Posted March 27, 2014 Share Posted March 27, 2014 This is not working properly. When try to place an order using this, user is not redirect to the external url. They got a blank page. But when users go to their account area and try to pay from invoice then it works. Any one can help me? 0 Quote Link to comment Share on other sites More sharing options...
nasos75 Posted March 28, 2014 Author Share Posted March 28, 2014 This script is extremely simple and you can't call it actually a 'module'. The script has just one line of code, maybe you're missing something here, probably you uploaded the script to your site and your ftp client converted line feeds and script is in one line. 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.