How can I link to my merchant account?
Written by GreyHead

It's a common requirement for commercial websites to want to link to a payment gateway like 'Authorise.net', or 'PayPal'. The exact way to do this will depend on the gateway specifications but here's a general solution that may give some help.

This code should post some variables to another URL and get you a response. What you do with the response will depend on your particular needs.

For example, the code below could be used in your "On submit after mail" box. It will post a variable called 'subscriber_ip' which the value of the submitter's IP address to an address : http://www.mydomain.com. You will need to work out which variables you need to send.

<?php
// Initialise CURL
$ch = curl_init('http://www.mydomain.com');

// Set CURL options
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,
"&subscriber_ip=".$_SERVER['REMOTE_ADDR']);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1);

// Do not return HTTP Headers
curl_setopt($ch, CURLOPT_HEADER ,0);

// Return the contents of the call
curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1);

// Display the results - replace with your processing code
echo $Rec_Data = curl_exec ($ch);

curl_close ($ch);
?>

Note: To use this code you must have the CURL PHP extension on your webserver, this is very commonly installed. See PHPInfo to check.)

Tags
100,00% of 5 voters found this FAQ useful,  I found this FAQ  useful useful  not useful not useful

Powered by EasyFAQ © 2006 Joomla-addons.org


equalheight If you have any questions you can post to our forums and we will be glad to help ASAP

Members Login






Lost Password?
No account yet? Register

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for
goods and services provided by ChronoEngine.com

ChronoForms License

equalheightTo be able to continue working at this component we decided to get a small profit out of it but at the same time don't force everybody to pay in order to use this great component.

 

 From version 1.5 and up a link at the bottom of everyform created will be placed, saying "joomla professional work", the link will be to us here htttp://www.chronoengine.com, its illegal to remove this link from the source code unless you have a license,

so the license is very simply for the same ChronoForms component without a link, thats all!

This License is for 5 different websites ONLY. 

 

 However, in order to allow everybody to still use the component and even get out of this, the link is inside a div with class : chronoform , use this to hide the link by using different colors or whatever if you really can't pay, but of course the link is still exists at your page source.

 

The license is ONLY 25$ can be bought here :

 

Thank you!

 

ChronoEngine.com Team 

Joomla Templates and Joomla Tutorials