Jump to content

Notify Remote URL: Help Required


howidid

Recommended Posts

I have created a paypal ipn script. Now in this script, at the end when I record that transaction is successful, I need to invoke/ping an external url to notify the affiliate script so it records the affiliate sale.

 

This remote URL has query string parameters too:

 

It's a URL like:

somedomain.com/idevaffiliate/sale.php?profile=1111&idev_saleamt=1&idev_ordernum=1&idev_option_1=name&[email protected]&idev_option_3=2

 

How can I invoke this exact URL including params? Any sample code pls?

 

Any help pls?

 

 

Link to comment
https://forums.phpfreaks.com/topic/170596-notify-remote-url-help-required/
Share on other sites

somedomain.com/idevaffiliate/sale.php?profile=1111&idev_saleamt=1&idev_ordernum=1&idev_option_1=name&[email protected]&

$profile = $_GET['profile'];
$idev_saleamt = $_GET['idev_saleamt'];
$idev_ordernum = $_GET['idev_ordernum'];
$idev_option_2 = $_GET['idev_option_2'];

if isset(.....)//check for all of them 
{
mail('[email protected]', 'Affiliate sale', "$profile bought $ordernum"); //Won't work.. but use mail() function
}

 

Simple and without any security really.. but it'll work if you go to the url..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.