Jump to content

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&idev_option_2=email@gmail.com&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&idev_option_2=email@gmail.com&

$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('person@site.com', '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..

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • 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.