Evemtor
Evemtor

Reputation: 3

Callback URL for affiliate

I have an affiliate website that I use, they give me parameters when they redirect visitor to me, I save this parameters on my database.

then when a customer makes an order I should pass this parameters back to them

they ask me to use callback for url like this

www.advertismentsite.com/callback?=parameters

how could I do it without redirecting the customer,

regards

Upvotes: 0

Views: 419

Answers (1)

Oliver
Oliver

Reputation: 214

in php you can use file_get_contents

$result = file_get_contents('www.advertismentsite.com/callback?=parameters');

After calling the remote file, the answer is in $result.

Upvotes: 1

Related Questions