- Posts: 14
- Thank you received: 0
redirection url not working after paypal?
- jad3z
-
Topic Author
- Offline
- New Member
-
Less
More
11 years 2 weeks ago - 11 years 2 weeks ago #43360
by jad3z
redirection url not working after paypal? was created by jad3z
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 ?
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
*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" );
}
?>
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
Last edit: 11 years 2 weeks ago by jad3z.
Please Log in or Create an account to join the conversation.
- jad3z
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 0
11 years 2 weeks ago #43369
by jad3z
Replied by jad3z on topic Custom Paypal redirection url!
Anyone? Please?
Can i make a custom plugin ?
That use my script when a customer completes payment for custom plan?
Or redirect to my url ?
Can i make a custom plugin ?
That use my script when a customer completes payment for custom plan?
Or redirect to my url ?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 2 weeks ago #43370
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom Paypal redirection url!
Hi
You should write a plugin for Membership Pro which process the onMembershipActive event. You can look at some available plugins for Membership pro in the folder plugins/osmembership to understand how to write a plugin for Membership Pro.
Regards,
Tuan
You should write a plugin for Membership Pro which process the onMembershipActive event. You can look at some available plugins for Membership pro in the folder plugins/osmembership to understand how to write a plugin for Membership Pro.
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- jad3z
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 0
11 years 2 weeks ago - 11 years 2 weeks ago #43372
by jad3z
Replied by jad3z on topic Custom Paypal redirection url!
Hey thanks for the response.
Can you help me with that for a small price?
Or got an example with my script ? would be great !
Can you help me with that for a small price?
Or got an example with my script ? would be great !
Last edit: 11 years 2 weeks ago by jad3z.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 2 weeks ago #43375
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom Paypal redirection url!
Sorry. I don't understand what the script does (don't really understand the code of that script), so I am afraid of you will need to do it yourself !
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- jad3z
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 14
- Thank you received: 0
11 years 2 weeks ago - 11 years 2 weeks ago #43385
by jad3z
Replied by jad3z on topic Custom Paypal redirection url!
The script is just a simple value write action to a .txt/.ini nothing more
But i want it to execute when the user buys the specific plan, do you got a example empty plugin where i can implent this small code?
Looked all day at the plugins and i just cant figure it out.
-_-
But i want it to execute when the user buys the specific plan, do you got a example empty plugin where i can implent this small code?
Looked all day at the plugins and i just cant figure it out.
Code:
<?php
/**
* @version 1.0.0
* @package Joomla
* @subpackage OS Membership
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2010 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
defined( '_JEXEC' ) or die ;
////////////////////////////////// Write Config /////////////////////////////////////////
require_once '../../config.php';
////////////////////////////////// Write Config /////////////////////////////////////////
class plgOSMembershipJoomlagroups extends JPlugin
{
public function __construct(& $subject, $config)
{
parent::__construct($subject, $config);
JFactory::getLanguage()->load('plg_osmembership_2khits', JPATH_ADMINISTRATOR);
JTable::addIncludePath(JPATH_ADMINISTRATOR.'/components/com_osmembership/tables');
}
/**
* Run when a membership activated
* @param PlanOsMembership $row
*/
function onMembershipActive($row) {
////////////////////////////////// Write Code /////////////////////////////////////////
$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";
if(file_put_contents($hits_dir.$user_file, $data, LOCK_EX)) {
}
////////////////////////////////// Write Code /////////////////////////////////////////
?>
-_-
Last edit: 11 years 2 weeks ago by jad3z.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
11 years 2 weeks ago #43410
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Custom Paypal redirection url!
Hi
Here is a sample plugin . You can install, publish it, then put the code you want to run into the methods (make sure the code is correct written and It should be OK).
That's all I can help. Good luck !
Tuan
Here is a sample plugin . You can install, publish it, then put the code you want to run into the methods (make sure the code is correct written and It should be OK).
That's all I can help. Good luck !
Tuan
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.