[ABD] Membership Management with Paypal IPN

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
Locked
the pips
Registered User
Posts: 511
Joined: Sat Mar 21, 2009 5:33 pm

Re: [BETA] Membership Management with Paypal IPN

Post by the pips » Thu May 15, 2014 7:52 am

Ok, lets take these one at a time.
  1. You need two mods installing. Premium Membership and Payments. Current versions are 1.0.13 and 1.0.5 respectively. Did you install them through Automod or manually?
  2. Missing shopping.php. It's looking for the language file (the one in root is the process) and is part of the payment mod. Which version do you have?
  3. Premium Memberships. I wouldn't use Newly Registered or Registered as PhpBB maintains them and will find users appear and disappear. Create a new group, Premium Members and set that up with all of the permissions you want.
  4. Purchase Membership. You won't get the payments option until you click on the Purchase Membership button.
  5. Registration Information. The mod presents any custom profile fields that are prefixed with 'ms_'. I've created a few in the mod as examples but you can create new ones and delete any or all of them in the ACP Custom Profile Fields.
    • Never. New users will not be presented with the option to upgrade to premium membership during registration. This is useful if you want to only offer premium membership to established users in your community.
    • Optional. The user can decide during the registration process if they want to subscribe to the premium membership
    • Always. Select this if you want to restrict the site to paying members.
Regards
Doug

Bill_Thompson
Registered User
Posts: 259
Joined: Mon Jun 20, 2005 2:58 am
Location: Bellevue, WA
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by Bill_Thompson » Thu May 15, 2014 10:15 pm

the pips wrote:Ok, lets take these one at a time.
  1. You need two mods installing. Premium Membership and Payments. Current versions are 1.0.13 and 1.0.5 respectively. Did you install them through Automod or manually?
Yes, I installed both mods manually.
the pips wrote:
2. Missing shopping.php. It's looking for the language file (the one in root is the process) and is part of the payment mod. Which version do you have?
OK, I only saw one shppping.php in the root. Are there two shopping.php files? This might be a thing. This might be the cause to the problem and the reason why it crashes. I will check this ASAP. Are there supposed to be two shopping.php, one in the root and one in the language directory?

It first crashed because there was no shopping.php in the language folder. Then, when I found the one in the root and moved it to the language folder, it gave the Internal server error.

I have been doing some tests on this file and I narrowed down the lines where the php file has problems. I think I will narrow it down to the precise line.

But now, I think, I need to see if there are supposed to be two shopping.php files.

UPDATE:
shopping.php is only in the root of payments V1.0.4. There is no shopping.phpin the language\en\mods folder

Have you gotten a test or demo version of this mod working?

Has anyone?
the pips wrote: 3. Premium Memberships. I wouldn't use Newly Registered or Registered as PhpBB maintains them and will find users appear and disappear. Create a new group, Premium Members and set that up with all of the permissions you want.
I suppose I will do that next.
the pips wrote: 4. Purchase Membership. You won't get the payments option until you click on the Purchase Membership button.
When I click on the Purchase Membership button, the window accesses the shopping.php file. This happens in the second attempt I show in the video. Internal server error actually happens when the program access the shopping.php file.
https://www.youtube.com/watch?v=A00UY5756oY

I just want to know why I get this internal server error. Do you have a version that works? Do you have a demo that works?

When someone clicks on the purchase membership button, are they supposed to be directed to the shopping.php in the language folder or the one on the root level?

the pips
Registered User
Posts: 511
Joined: Sat Mar 21, 2009 5:33 pm

Re: [BETA] Membership Management with Paypal IPN

Post by the pips » Sun May 18, 2014 6:42 pm

Basically the all language files contains are additions to the $user->language array and aren't standalone programs. Pretty much everything that is actually run are in the root directory and everything else is included.
Dowload v1.0.5 as that has the corrections in it.

Regards
Doug

Bill_Thompson
Registered User
Posts: 259
Joined: Mon Jun 20, 2005 2:58 am
Location: Bellevue, WA
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by Bill_Thompson » Wed May 21, 2014 3:47 pm

I am very happy with this mod now. It seems to work just fine. Apart from some aesthetic adjustments that are merely a matter of preference, it looks like it is all just about done.

http://www.arguemax.com/images/problems ... ure_01.PNG

Bill_Thompson
Registered User
Posts: 259
Joined: Mon Jun 20, 2005 2:58 am
Location: Bellevue, WA
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by Bill_Thompson » Thu May 22, 2014 3:21 pm

When I sign up with a test account, I get this message when I click on the paypal button:
Information

I'm sorry but we have encountered an error processing your payment.
Our technical team have been informed

failed with code: 303 - rifle
What does "rifle" mean? Even if I am using an email address that is not connected to a paypal account, shouldn't I still get to go further instead of getting this message?

Here is a snapshot of the message:
http://www.arguemax.com/images/problems ... ure_02.PNG

Watch this new video I made with Ezvid:
http://youtu.be/728GYPBLYhU

A look at the php code tracks the problem down to this function and "failed with code: {$result[0]} - {$result[1]}" is where the message "failed with code: 303 - rifle" comes from. Can anyone suggest how I can debug this?

Code: Select all

	private function process_request($data)
	{
		global $config;

		$request = new HTTPRequest($this->host, $this->endpoint, 'POST', $config['pp_paypal_secure']);
		$data['USER']		= $config['pp_paypal'.($config['pp_paypal_use_sandbox'] ? '_sandbox_' : '_').'API_username'];
		$data['PWD']		= $config['pp_paypal'.($config['pp_paypal_use_sandbox'] ? '_sandbox_' : '_').'API_password'];
		$data['SIGNATURE']	= $config['pp_paypal'.($config['pp_paypal_use_sandbox'] ? '_sandbox_' : '_').'API_signature'];

		$temp = http_build_query($data);
		$result = $request->connect($temp);
		$return=false;
		if (is_array($result))
		{
			$this->last_error = "failed with code: {$result[0]} - {$result[1]}";
		}
		elseif ($result<400)
		{
	  		$response = $request->get_content();

			parse_str($response, $this->EC_data);
//			$this->write_results($this->paypal_vars['METHOD'] . ' process request returned = ' . $this->EC_data['ACK']);
			if ($this->EC_data['ACK'] == 'Success')
			{
				$return=true;
			}
			else
			{
				$this->last_error = 'Failed Validation';
			}
		}
		else
		{
			$this->last_error = "failed with code: {$result}";
		}
		return $return;
	}
(UPDATE) Ok, I was looking around and I found something.
Image

When I removed, actually, commented out, the line, it seems everything works fine. Or at least now it runs to completion. I still have some minor adjustments to make, like making it USD.
Watch this new video I made:
http://youtu.be/LEcYSk48-eA

Bill_Thompson
Registered User
Posts: 259
Joined: Mon Jun 20, 2005 2:58 am
Location: Bellevue, WA
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by Bill_Thompson » Mon May 26, 2014 2:53 am

I set it up for USD and the amount that goes to paypal is USD and the amount appears with a $ symbol. But the display seems to say GDP improperly.

Please help
http://www.arguemax.com/images/problems ... ure_07.PNG
Image


http://www.arguemax.com/images/problems ... ure_09.PNG
Image
http://www.arguemax.com/images/problems ... ure_08.PNG
Image

http://www.arguemax.com/images/problems ... ure_06.PNG
Image

MrC
Registered User
Posts: 857
Joined: Mon Jun 30, 2003 4:11 pm
Location: The Netherlands
Name: Ivo
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by MrC » Mon May 26, 2014 5:56 am

Did you change GBP into $ in ACP?
There are two places where it's set, in the Paypal configuration and the Membership settings

Bill_Thompson
Registered User
Posts: 259
Joined: Mon Jun 20, 2005 2:58 am
Location: Bellevue, WA
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by Bill_Thompson » Mon May 26, 2014 5:37 pm

This fixed the issue. I found where to make the setting in the membership area.

Thanks :)

Bill_Thompson
Registered User
Posts: 259
Joined: Mon Jun 20, 2005 2:58 am
Location: Bellevue, WA
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by Bill_Thompson » Mon May 26, 2014 6:34 pm

I got this working.

The first form that the user fills out during the registration process is a pretty standard registration form. It has some fields I would like to remove and some I would like to add. How would I do that? (that is my first question) Here is my second question. There is a field that says "The items marked with * are required profile fields and need to be filled out." But, none of the fields are marked with a *. How did that happen, and how can I change that and how do I know which ones are required. If I leave the form blank and hit register I get 5 red errors.
Image
Image

The second page is called Membership Application form. My third question is: how can I merge this into the first page and why is it a second page anyway?
Here is a screen shot
Image
and it appears at 10 seconds here
https://www.youtube.com/watch?v=LEcYSk48-eA

Next is "You need to login before you can send out an application" How can I rephrase this? I mean, on what page do I go to customize this caption? Also, I suppose this is necessary somehow. Is it? The best thing would be to remove this step. The next best thing I suppose would be to say "It is necessary to login now in order to complete your application". Do we need to have a registration option here?
Image

Next is a membership application page. Why do we have this? Why is it needed? The user has to input information that he already inputted.
Image

The rest of the application process seems ok. But why cant we have this on and all the other previous pages on just one page?
Image

I was trying to change the html page that contains the "SHOPPING BASKET". This file is called payment_forum.html and is located in stypes\prosilver\template. I tried commenting out the columns for currency code. It did not work. So I think that changes to the page accessed by http://www.arguemax.com/_phpBB-3.0.12/s ... =0&amt_os= must be done some other way. I would like to modify this page still. I would like the space for the paypal button to be bigger and I would like the other buttons on the page to be smaller.

Image

MrC
Registered User
Posts: 857
Joined: Mon Jun 30, 2003 4:11 pm
Location: The Netherlands
Name: Ivo
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by MrC » Tue May 27, 2014 5:49 am

I was trying to change the html page that contains the "SHOPPING BASKET". This file is called payment_forum.html and is located in stypes\prosilver\template. I tried commenting out the columns for currency code. It did not work.
What did you do?
So I think that changes to the page accessed by http://www.arguemax.com/_phpBB-3.0.12/s ... =0&amt_os= must be done some other way.
No

Bill_Thompson
Registered User
Posts: 259
Joined: Mon Jun 20, 2005 2:58 am
Location: Bellevue, WA
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by Bill_Thompson » Tue May 27, 2014 5:34 pm

MrC wrote:
I was trying to change the html page that contains the "SHOPPING BASKET". This file is called payment_forum.html and is located in stypes\prosilver\template. I tried commenting out the columns for currency code. It did not work.
What did you do?
So I think that changes to the page accessed by http://www.arguemax.com/_phpBB-3.0.12/s ... =0&amt_os= must be done some other way.
No
Since I got the USD to appear properly, I don't really need to remove those columns. The column headers and the code representing the tables for currency code were easy to find. There were two tables and two areas to comment out with <!-- and -->

MrC
Registered User
Posts: 857
Joined: Mon Jun 30, 2003 4:11 pm
Location: The Netherlands
Name: Ivo
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by MrC » Tue May 27, 2014 5:52 pm

Yes but you said it didn't work

Bill_Thompson
Registered User
Posts: 259
Joined: Mon Jun 20, 2005 2:58 am
Location: Bellevue, WA
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by Bill_Thompson » Tue May 27, 2014 8:38 pm

Sorry for the confusion. After I changed the USD in the membership settings, it worked. I thought I posted that. If not, my mistake.

I am just fine-tuning now. Everything, in truth, works now.

Bill_Thompson
Registered User
Posts: 259
Joined: Mon Jun 20, 2005 2:58 am
Location: Bellevue, WA
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by Bill_Thompson » Wed May 28, 2014 1:59 am

Well, I discovered where I can update the profile fields. I recorded this video of my discovery.
http://youtu.be/BRAT0SxTVLo

Bill_Thompson
Registered User
Posts: 259
Joined: Mon Jun 20, 2005 2:58 am
Location: Bellevue, WA
Contact:

Re: [BETA] Membership Management with Paypal IPN

Post by Bill_Thompson » Wed May 28, 2014 1:27 pm

How do I make the payment button area larger.
The subscribe button from paypal is:

height: 47px;
width: 147px;

the membership.css and payment.css offers the space:

height: 45px;
width: 116px;

but when I change the settings in these two files, and upload and refresh it does not change. Is there some other place I need to make the changes?

Locked

Return to “[3.0.x] Abandoned MODs”