Hey Tuan!
*NEW*
Since you cant help me how to run this script when someone subscribes,
can you help me how to fix the redirect link after paypal? it goes to the "Subscription complete" page
while i insert a custom link in the plan
I really need your help, i got one subscription plan that is for lifetime and renewable.
You buy credits ( hits ) and my script will write this amount to .ini ( configuration file ).
Can i make a plugin out of this to assign to the plan ?
Code:
<?php
require_once 'config.php';
//if betaald...{
//////////// Amount 2k ///////////////
$hits = 2000;
$channelName = '';
if(isset($hits_ini)) {
$hits += $hits_ini['hits'];
$channelName = $hits_ini['channel'];
echo '';
}
$data = "[Configuration file]\r\n";
$data .= "hits=" . $hits . "\r\n";
$data .= "channel=" . $channelName;
if(file_put_contents($hits_dir.$user_file, $data, LOCK_EX)) {
echo header( "Location: http://website.com/payments" );
}
?>
My Question :
I can also make my own URl with the script but i need paypal to redirect it to that page, how?
(website.com/secret/activation01.php)
Because "Subscription complete url (optional)" is not working or showing up on paypal, so i cant redirect them to my script.
Please help