[CDB] PayPal Donation Extension aka PPDE

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Anti-Spam Guide
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
drooid
Registered User
Posts: 81
Joined: Tue Mar 31, 2009 9:15 am

Re: [DEV] PayPal Donation Extension aka PPDE

Post by drooid »

Thanks for explanation but I have private paypal account and do not want to change it. Local donations between private accounts are free of charge. Think about this working over new version, please. ;)
Current transactions are treated as trade payments. Propably there is a possibility to use paypal API for non business payments.
User avatar
ForoXL
Registered User
Posts: 48
Joined: Wed Feb 04, 2015 4:57 pm
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by ForoXL »

Great Job boss. GREAT
http://www.ForoXL.com - Foro dedicado a temas generales
Skouat
Code Contributor
Posts: 885
Joined: Mon Mar 10, 2008 5:30 pm
Location: France
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Skouat »

drooid wrote:Local donations between private accounts are free of charge.
As you written, this is between private accounts. There is no interaction with any third party (your website/board).
This kind of transaction cannot be automated.

As the aim of this extension is to provide an automated version, there are not many solutions to do it. And unfortunately the fees are part of the constraints related to the use of API.

Regarding the available API, only the two following allow to define a payment as a "donation": Related link : PDT vs IPN
ForoXL wrote:Great Job boss. GREAT
Thx!
User avatar
supanet
Registered User
Posts: 244
Joined: Sat Dec 15, 2012 4:20 pm
Location: UK
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by supanet »

I was following this with interest but if it needs this "This extension requires an PayPal "Business" account" then its not for me. :(
Skouat
Code Contributor
Posts: 885
Joined: Mon Mar 10, 2008 5:30 pm
Location: France
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Skouat »

Upgrade to Business account is free of charge and change anything to the use of PayPal. This just allow more features not available with a personal account.
entonox
Registered User
Posts: 24
Joined: Fri Jan 17, 2014 10:51 am

Re: [DEV] PayPal Donation Extension aka PPDE

Post by entonox »

Skouat,

I tried the IPN function. I use the PayPal Sandbox accounts to test the IPN. When i make a test donation i get the following in the error log:

Code: Select all

FILE: [ROOT]/ext/skouat/ppde/controller/ipn_listener.php
LINE: 282
CALL: skouat\ppde\controller\ipn_listener->log_error()
FILE: [ROOT]/ext/skouat/ppde/controller/ipn_listener.php
LINE: 142
CALL: skouat\ppde\controller\ipn_listener->validate_transaction()
FILE: (not given by php)
LINE: (not given by php)
CALL: skouat\ppde\controller\ipn_listener->handle()
FILE: [ROOT]/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php
LINE: 109
CALL: call_user_func_array()
FILE: [ROOT]/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php
LINE: 55
CALL: Symfony\Component\HttpKernel\HttpKernel->handleRaw()
FILE: [ROOT]/app.php
LINE: 33
CALL: Symfony\Component\HttpKernel\HttpKernel->handle()
[01-Mar-2016 15:06:07 3600] Invalid response status: 
[args]
receiver_id = 8NMT8TJLSCZLS;
receiver_email = arnovdlaan-facilitator%40gmail.com;
residence_country = NL;
business = arnovdlaan-facilitator%40gmail.com;
confirmed = ;
test_ipn = 1;
txn_id = 87G72261PS218493J;
txn_type = web_accept;
parent_txn_id = ;
payer_email = arnovdlaan-buyer%40gmail.com;
payer_id = 7EVHV5955DFKL;
payer_status = verified;
first_name = test;
last_name = buyer;
item_name = Make+a+Donation+to+Triumphtr7.nl;
item_number = uid_48_1456841142;
mc_currency = EUR;
mc_gross = 5;
mc_fee = 0;
payment_date = 06%3A06%3A02+Mar+01%2C+2016+PST;
payment_status = Completed;
payment_type = instant;
settle_amount = 0;
settle_currency = ;
exchange_rate = ;
 
FILE: [ROOT]/ext/skouat/ppde/controller/ipn_listener.php
LINE: 282
CALL: skouat\ppde\controller\ipn_listener->log_error()
FILE: [ROOT]/ext/skouat/ppde/controller/ipn_listener.php
LINE: 142
CALL: skouat\ppde\controller\ipn_listener->validate_transaction()
FILE: (not given by php)
LINE: (not given by php)
CALL: skouat\ppde\controller\ipn_listener->handle()
FILE: [ROOT]/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php
LINE: 109
CALL: call_user_func_array()
FILE: [ROOT]/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/HttpKernel.php
LINE: 55
CALL: Symfony\Component\HttpKernel\HttpKernel->handleRaw()
FILE: [ROOT]/app.php
LINE: 33
CALL: Symfony\Component\HttpKernel\HttpKernel->handle()
Can you see whats wrong? I tried to enable the IPN in the facilitator test acocunt, and i set the URL to ' http://triumphtr7.nl/forum/app.php/ipn-listener' i assume this is right?
entonox
Registered User
Posts: 24
Joined: Fri Jan 17, 2014 10:51 am

Re: [DEV] PayPal Donation Extension aka PPDE

Post by entonox »

Solved it already :roll:

I need to fill my facilitator sandbox address in both 'paypal acount id' and 'sandbox address'. Now its working with paypal sandbox.
Skouat
Code Contributor
Posts: 885
Joined: Mon Mar 10, 2008 5:30 pm
Location: France
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Skouat »

Hi entonox,
entonox wrote:I need to fill my facilitator sandbox address in both 'paypal acount id' and 'sandbox address'. Now its working with paypal sandbox.
Before you fix your issue, which one was filled?
Only PayPal account id or only Sandbox address?
entonox
Registered User
Posts: 24
Joined: Fri Jan 17, 2014 10:51 am

Re: [DEV] PayPal Donation Extension aka PPDE

Post by entonox »

Skouat,

I had my normal account filled in the Paypal account id and the sandbox account filled in the Sandbox address Then the error showed. I assumed only the Sandbox address was used in testing, but i guess the paypal account id is also used somewhere.

Don't know if it is supposed to be like that or a bug?
Skouat
Code Contributor
Posts: 885
Joined: Mon Mar 10, 2008 5:30 pm
Location: France
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Skouat »

Hi,
entonox wrote:Don't know if it is supposed to be like that or a bug?
Maybe a bug, I'll check this point.
Skouat
Code Contributor
Posts: 885
Joined: Mon Mar 10, 2008 5:30 pm
Location: France
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Skouat »

Hi,

@entonox: I haven't found the bug you encountered. This parts works as expected.

@All: The develop branch has been updated to include the "auto-update of stats"

Next step, add notification.

After that I'll try to submit the extension to the CDB.
User avatar
Volksdevil
Registered User
Posts: 2414
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Volksdevil »

Hi mate,

Before trying this, can I ask if one vital (At least for me) option is included?

When somebody donates, and they are added to a donators group...Can you set how long they are within the donators group? Before they are then auto-removed from that group?

Otherwise it could be more of a 'Free for all' where somebody could donate £1 and take advantage of the donators group forever...Basically, can you manage times that people are within groups?
My phpBB Extensions
Finally found great Website Hosting from Image KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Mixer | My Volkswagen Corrado G60
Skouat
Code Contributor
Posts: 885
Joined: Mon Mar 10, 2008 5:30 pm
Location: France
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Skouat »

Hi Volksdevil,

It makes more sense to add this features if I implement the recurring donation.
Currently, this is not the case. But it's in the pipe. ;)
User avatar
Volksdevil
Registered User
Posts: 2414
Joined: Sun Oct 03, 2010 2:03 pm
Location: Lancashire, UK
Name: Neil
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Volksdevil »

Great stuff, thanks. Really look forward to that! :)
My phpBB Extensions
Finally found great Website Hosting from Image KUALO!
Do NOT use 123-reg.co.uk - Incapable of running phpBB!
:ugeek: TekNeil - Streamer on Mixer | My Volkswagen Corrado G60
Skouat
Code Contributor
Posts: 885
Joined: Mon Mar 10, 2008 5:30 pm
Location: France
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Skouat »

entonox wrote:Skouat,

I had my normal account filled in the Paypal account id and the sandbox account filled in the Sandbox address Then the error showed. I assumed only the Sandbox address was used in testing, but i guess the paypal account id is also used somewhere.

Don't know if it is supposed to be like that or a bug?
I've found the bug.
This is fixed in the develop branch.

@all : please update the extension by replacing files. No need to uninstall the extension. Just purge the cache of your board.
Locked

Return to “Extensions in Development”