PayPal Donation Extension

Donations Not Showing + Donation Bar At The Top? - PayPal Donation Extension

Re: Donations Not Showing + Donation Bar At The Top?

by dynserver » Wed Apr 12, 2017 8:47 pm

Hmm okay, so I had everything on.. but i changed the IPN notification URL from just being my /forums/
to my /forums/app.php?/donate extension and did a test donation which seemed to have worked. Does that make any sense to you? I mean I guess it worked that way now.. lol
dynserver
Registered User
Posts: 92
Joined: Thu Apr 06, 2017 11:06 pm

Re: Donations Not Showing + Donation Bar At The Top?

by Skouat » Thu Apr 13, 2017 9:59 am

This is not important if the URL is not valid. The extension provides the correct return URL when you make a donation.
But you can set it with: http://domain.tld/forums/app.php/ipn-listener
Skouat
Code Contributor
Posts: 1059
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: Donations Not Showing + Donation Bar At The Top?

by Skouat » Fri Apr 14, 2017 6:15 pm

@dynserver

Can you test with your real PayPal ID on the test board?
As explained prevouisly, it works on the test board with my PayPal ID.

If it still not working, I think I will raised an Issue on PayPal services.
Skouat
Code Contributor
Posts: 1059
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: Donations Not Showing + Donation Bar At The Top?

by dynserver » Wed May 31, 2017 8:33 pm

Hey so I'm back now, because the problem happened again.. I didnt touch anything. It seemed to work for a couple weeks since my last message in april 14th. I didn't know you replied and wanted more information on the problem.


But yeah so it's pretty much doing the same thing again. What was it that you wanted me to help you with?
dynserver
Registered User
Posts: 92
Joined: Thu Apr 06, 2017 11:06 pm

Re: Donations Not Showing + Donation Bar At The Top?

by Skouat » Thu Jun 01, 2017 5:11 pm

Hi,

As explained in my 2 previous message, I have no errors with the Sandbox or the PayPal config on your demo board.

What I expected was a test on your demo board with your real PayPal ID.
If it works with your ID on the demo board => There is an issue with your live board.
If it doesn't work with your ID on the demo board => There is an issue with your PayPal ID.

Please, let me know.
Skouat
Code Contributor
Posts: 1059
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: Donations Not Showing + Donation Bar At The Top?

by dynserver » Mon Jun 05, 2017 3:10 am

Yeah the test board works.. Just donated to myself twice on the test board. What do you think the problem is?? what could possible be causing the issues. My forum template?

other extensions?
specific permissions? (although these are all set normally..)
dynserver
Registered User
Posts: 92
Joined: Thu Apr 06, 2017 11:06 pm

Re: Donations Not Showing + Donation Bar At The Top?

by Skouat » Tue Jun 06, 2017 6:37 am

Hard to say what causing this issue without adding more check point in the code. Especially when the issue seems to come from outside the extension.

I will provide you with a code to insert in the files to track when the IPN listener fails.
Skouat
Code Contributor
Posts: 1059
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: Donations Not Showing + Donation Bar At The Top?

by dynserver » Wed Jun 07, 2017 2:24 pm

Sounds good, I'm here and ready when you are.


EDIT:

It's weird. I turned off IPN settings and donated.. but the donation bar doesnt want to go up.. it didnt go up with IPN on.. so I figure maybe I'll turn it off.. and it still doesnt go up on donations. Wonder what's wrong .
dynserver
Registered User
Posts: 92
Joined: Thu Apr 06, 2017 11:06 pm

Re: Donations Not Showing + Donation Bar At The Top?

by dynserver » Wed Jun 07, 2017 5:00 pm

Update:

Actually I just went ahead and disabled ALL extensions, change to default template + checked cookie and board settings on my live board and nothing still works..


So..

this brings me to only comparing the PHPbb versions..

Live board that doesnt work = 3.1.9 [ Re-Check version ]

Test board that works = 3.1.7-pl1 [ Re-Check version ]




Now I didn't think 3.1.7 vs 3.1.9 would have a huge effect? That's why the test board is 3.1.7 cause thats the closest download I could find on phpbb for it...
however isnt it supportive of 3.1.9 anyways?



Tell me if I should do anything else, as I was going to raise concern on paypals side.. but then I realized that would be pointless because technically it DOES work on the test board.. so it wont be paypals side.
:cry: :roll:
dynserver
Registered User
Posts: 92
Joined: Thu Apr 06, 2017 11:06 pm

Re: Donations Not Showing + Donation Bar At The Top?

by Skouat » Wed Jun 07, 2017 5:48 pm

dynserver wrote: It's weird. I turned off IPN settings and donated.. but the donation bar doesnt want to go up.. it didnt go up with IPN on.. so I figure maybe I'll turn it off.. and it still doesnt go up on donations. Wonder what's wrong .
The donation bar is automatically updated only if the IPN settings are enabled.
If a donation is made without IPN, you must update the donation bar manually.
dynserver wrote: Live board that doesnt work = 3.1.9 [ Re-Check version ]

Test board that works = 3.1.7-pl1 [ Re-Check version ]
Can you upgrade the test board to 3.1.9 ?
dynserver wrote: Now I didn't think 3.1.7 vs 3.1.9 would have a huge effect? That's why the test board is 3.1.7 cause thats the closest download I could find on phpbb for it...
however isnt it supportive of 3.1.9 anyways?
the extension is compatible with 3.1.3 and later.
dynserver wrote: Tell me if I should do anything else, as I was going to raise concern on paypals side.. but then I realized that would be pointless because technically it DOES work on the test board.. so it wont be paypals side.
Yes, if it works on the test board, this is not a PayPal issue.
In addition, you seem to be the only one to have this issue.

I'll try to give you tests code for next Monday or Tuesday.
Skouat
Code Contributor
Posts: 1059
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: Donations Not Showing + Donation Bar At The Top?

by dynserver » Wed Jun 07, 2017 6:24 pm

edit:

updating test board to 3.1.9.



Works on test board with 3.1.9.


Damn.. what am I doing wrong on my live board then.. It makes no sense to me :|
dynserver
Registered User
Posts: 92
Joined: Thu Apr 06, 2017 11:06 pm

Re: Donations Not Showing + Donation Bar At The Top?

by Skouat » Sun Jun 11, 2017 4:52 pm

Hi,

Open the file "ppde_ext_path/controller/ipn_listener.php"

Find

Code: Select all

		// if no connection detected, disable IPN, log error and exit code execution
		if ($this->get_curl_fsock() == 'none')
		{
			$this->config->set('ppde_ipn_enable', false);
			$this->log_error($this->user->lang['NO_CONNECTION_DETECTED'], true, true, E_USER_WARNING);
		}

		// Check the transaction returned by PayPal
		$this->validate_transaction();

		$this->log_to_db();

		$this->do_actions();

Replace with

Code: Select all

		// if no connection detected, disable IPN, log error and exit code execution
		if ($this->get_curl_fsock() == 'none')
		{
			$this->config->set('ppde_ipn_enable', false);
			$this->log_error($this->user->lang['NO_CONNECTION_DETECTED'], true, true, E_USER_WARNING);
		}
		$this->log_error('IPN Listener Line CP1: pass', true);
		// Check the transaction returned by PayPal
		$this->validate_transaction();
		$this->log_error('IPN Listener Line CP2: pass', true);
		$this->log_to_db();
		$this->log_error('IPN Listener Line CP3: pass', true);
		$this->do_actions();
		$this->log_error('IPN Listener Line CP4: pass', true);
Make a donation et send me a PM with the content of the extension log file.
Skouat
Code Contributor
Posts: 1059
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: Donations Not Showing + Donation Bar At The Top?

by dynserver » Tue Jun 13, 2017 1:11 pm

pm'ed
dynserver
Registered User
Posts: 92
Joined: Thu Apr 06, 2017 11:06 pm

Re: Donations Not Showing + Donation Bar At The Top?

by Skouat » Tue Jun 13, 2017 7:10 pm

Please can you confirm that the code below is the same in your log file?

Code: Select all

business ********@******.com
confirmed 
exchange_rate 
first_name EV******
item_name 
item_number uid_2_1497359279
last_name ARTS*******
mc_currency USD
mc_gross 3.00
mc_fee 0.39
parent_txn_id
Because the chars = is missing between the variable and the value.
It should be

Code: Select all

business = ********@******.com
confirmed = 
exchange_rate = 
first_name = EV******
item_name = 
item_number = uid_2_1497359279
last_name = ARTS*******
mc_currency = USD
mc_gross = 3.00
mc_fee = 0.39
parent_txn_id =
Skouat
Code Contributor
Posts: 1059
Joined: Mon Mar 10, 2008 5:30 pm
Location: France

Re: Donations Not Showing + Donation Bar At The Top?

by dynserver » Wed Jun 14, 2017 3:37 am

My log file and all log files taken before (month ago) when we did it. THey all don't have have the "=" at all.
dynserver
Registered User
Posts: 92
Joined: Thu Apr 06, 2017 11:06 pm