[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!
Suggested Hosts
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)
Locked
Kinsman
Registered User
Posts: 207
Joined: Sun Jan 02, 2005 6:04 am
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Kinsman »

Need to set your permissions for groups.
Skouat
Code Contributor
Posts: 884
Joined: Mon Mar 10, 2008 5:30 pm
Location: France
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Skouat »

Set the users/groups permissions.
v12mike
Registered User
Posts: 519
Joined: Thu Jul 09, 2015 5:03 pm

Re: [DEV] PayPal Donation Extension aka PPDE

Post by v12mike »

Skouat wrote:Set the users/groups permissions.
Thanks. I somehow missed that.

A suggestion for an enhancement: Add the ability to have an text box on the donation main page that the user can fill in with a message to the administrator (or maybe optionally display on the donors page).
User avatar
eunaumtenhoid
Registered User
Posts: 998
Joined: Wed Jun 03, 2009 12:46 am
Location: ????

Re: [DEV] PayPal Donation Extension aka PPDE

Post by eunaumtenhoid »

no compatible with Advanced BBCode Box

help?
My translations of the extensions for Brazilian Portuguese
https://github.com/phpBBTraducoes
rAdic
Registered User
Posts: 426
Joined: Mon Apr 25, 2005 11:32 pm
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by rAdic »

Installation
1.Unpack the package downloaded from Github and copy files to the ext/skouat/ppde directory.
this is not where it unzips to by default, it unzips to "ext_paypal_donation-master"

and it does not work so i guess Ihave to manualy change the directory, are you aware of this as many people might not realize this?
The Australian Forums - Australia Discussion Forum - Discuss Australia topics or generally anything
Skouat
Code Contributor
Posts: 884
Joined: Mon Mar 10, 2008 5:30 pm
Location: France
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Skouat »

eunaumtenhoid wrote:no compatible with Advanced BBCode Box

help?
I will test next week.
rAdic wrote:this is not where it unzips to by default, it unzips to "ext_paypal_donation-master"

and it does not work so i guess Ihave to manualy change the directory, are you aware of this as many people might not realize this?
Thank you for this report, and you are right.
But people who download the extension in a development status should be able to install the extension properly, even if all files are unpacked in the wrong directory.
So I let them instrusctions as is.
User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 4561
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by kasimi »

Hello again. :) I'm currently testing this extension in sandbox mode and everything seems to work fine except one thing: all sandbox statistics on the overview page in the ACP have values of zero, even though I've done many test transactions. I use the sandbox accounts that were automatically generated. Refreshing the statistics doesn't help. Here's the log output of my latest transaction:

Code: Select all

[15-Oct-2016 19:36:17 7200] DEBUG INVALID:
--------------------------------------------------------------------------------
[10/15/2016 7:36 PM] - https://www.sandbox.paypal.com/cgi-bin/webscr ( curl )
--------------------------------------------------------------------------------
HTTP/1.1 200 OK
Date: Sat, 15 Oct 2016 17:36:17 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Set-Cookie: c9MWDuvPtT9GIMyPc3jwol1VSlO=YanfMe-hzDlbG9tcFixYcWEjN-9EXtoMKPPwT1q3U8LYHtpqHDbE4wCjTdVTL4v4SMl0qV9illNhjqC55_Of2XSd8g0CCfG-CCMc3tqhKC7EVROKO3FYff7wKs-CqmeHVezXUptz5oHOXi83i5v2wIxOlP6qPLcENihaJC0g64S8rm1Mi7GxqG9GDbdObwWS3w3Uq_iktIK41CD5qU_W6tzWhRR7cFpdYCO9NvC7J4xr_srj17gYfaOgAgfnbxwWI6ub3trwKa6HCAc8h9-njkeSgRxMSUDOfNg9T7H6KC-pF0Fgf0-hfysdAoYvziFiXUo9Fk2JWlCgAW4cBNfYRTneILBrBsRmtghv6Ycc5mgvRyaULxfqoy4nPTTAorGuiktRKo_5TCP9eFscK4Biz4KLI08Y_Bvup4zB4Yi5Y2vAP6ibVAiU508lGOG; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: cookie_check=yes; expires=Tue, 13-Oct-2026 17:36:17 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navlns=0.0; expires=Mon, 15-Oct-2018 17:36:17 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.72.108.11.1476552977106277; path=/; expires=Mon, 08-Oct-46 17:36:17 GMT
Vary: Accept-Encoding,User-Agent
Connection: close
HTTP_X_PP_AZ_LOCATOR: sandbox.slc
Paypal-Debug-Id: e9a3ebd01429d
Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.WEB.1%26silo_version%3D1880%26app%3Dappdispatcher%26TIME%3D292094552%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Sat, 15 Oct 2016 18:06:17 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
Strict-Transport-Security: max-age=14400
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

INVALID

200
--------------------------------------------------------------------------------
business                 xxx-facilitator@gmail.com
confirmed                
exchange_rate            
first_name               test
item_name                Make a Donation to xxx
item_number              uid_2_1476550941
last_name                buyer
mc_currency              EUR
mc_gross                 10.00
mc_fee                   0.64
parent_txn_id            
payer_email              xxx-buyer@gmail.com
payer_id                 CHG3QRGAW64WL
payer_status             verified
payment_date             10:36:10 Oct 15, 2016 PDT
payment_status           Completed
payment_type             instant
receiver_id              CNUGG6BM9BQB8
receiver_email           xxx-facilitator@gmail.com
residence_country        DE
settle_amount            0
settle_currency          
test_ipn                 1
txn_id                   9JB246427C154880R
txn_type                 web_accept
transaction_subject      
payment_gross            
protection_eligibility   Ineligible
verify_sign              AonRS5l2W2xlt2An.GaSrAzpCl-NAd7B72Q8bamdlxjuLyFS3lwcoFX6V
tax                      0.00
quantity                 0
payer_business_name      
payment_fee              
custom                   
charset                  windows-1252
notify_version           3.8
ipn_track_id             52c821cc7eed2


 
FILE: [ROOT]/ext/skouat/ppde/controller/ipn_listener.php
LINE: 647
CALL: skouat\ppde\controller\ipn_listener->log_error()
FILE: [ROOT]/ext/skouat/ppde/controller/ipn_listener.php
LINE: 319
CALL: skouat\ppde\controller\ipn_listener->check_response()
FILE: [ROOT]/ext/skouat/ppde/controller/ipn_listener.php
LINE: 160
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()
I also used the IPN simulator a few times but those tests aren't supposed to show up in the ACP statistics, I presume?

Also there aren't any entries in the transaction log. Are there supposed to be entries for sandboxed transactions?
Skouat
Code Contributor
Posts: 884
Joined: Mon Mar 10, 2008 5:30 pm
Location: France
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Skouat »

Hi kasimi,

If you use the sandbox mode, only the transactions log and the overview page are updated.

Your sandbox transaction returned an INVALID response, that's why you don't see transactions.

For example, below you can find a valid response :
https://gist.github.com/efinst0rm/95768 ... ns-log-L24

It seems that the IPN transaction content returned to PayPal is not the same as the original.
https://developer.paypal.com/docs/class ... g/#invalid
User avatar
kasimi
Extension Customisations
Extension Customisations
Posts: 4561
Joined: Sat Sep 10, 2011 7:12 pm
Location: Germany
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by kasimi »

The clue was in the docs you linked:
Ensure that you use the same character encoding for your response string as the encoding specified in the charset field of the original IPN message. When testing using the IPN Simulator, the character encoding will always be UTF-8.
I noticed the charset in my logs was windows-1252 so I had to change the encoding in my facilitator's account. I couldn't find the option in the account settings, this direct link saved me some time:

For real accounts:
https://www.paypal.com/cgi-bin/customer ... e-encoding

For sandbox accounts:
https://www.sandbox.paypal.com/cgi-bin/ ... e-encoding

After setting it to UTF-8 the sandbox transactions are now VERIFIED and show up in the transactions log. Thanks for the hints!
Skouat
Code Contributor
Posts: 884
Joined: Mon Mar 10, 2008 5:30 pm
Location: France
Contact:

Re: [DEV] PayPal Donation Extension aka PPDE

Post by Skouat »

I tested on my demo board and all works as expected.

Have a look on the log you pasted in your previous post and you will see that you use the UTF-8.
=> Content-Type: text/html; charset=UTF-8
Do not confuse with the text encoding on the form.

As, you seems use the DE language, please could you test with other Sandbox account?
https://github.com/Skouat/ext_paypal_do ... nformation
Skouat
Code Contributor
Posts: 884
Joined: Mon Mar 10, 2008 5:30 pm
Location: France
Contact:

Re: [CDB] PayPal Donation Extension aka PPDE

Post by Skouat »

Extension is released, further support is at https://www.phpbb.com/customise/db/exte ... on/support
Locked

Return to “Extensions in Development”