Page MenuHomePhabricator

Log referrer URL and request URL for traffic hitting payments
Open, Needs TriagePublic

Description

To help debug donors being sent to incorrect payment forms, like the issue here, let's log the incoming $_SERVER['HTTP_REFERER'] and $_SERVER['REQUEST_URI'] or whatever the MediaWiki core equivalents are, in the payments-wiki logs. This will make life easier for us.

This will give us URLs like:

HTTP_REFERER => https://localhost:9001/index.php/Main_Page
REQUEST_URI => /index.php?title=Special:AdyenCheckoutGateway&appeal=JimmyQuote&payment_method=cc&recurring=0&uselang=en&language=en&currency=USD&amount=10&country=US&first_name=Jimmy&last_name=Wales&street_address=1+Montgomery+Street&city=San+Francisco&state_province=CA&postal_code=94104&email=jwales%40example.com&debug=true

Event Timeline

Change #1035804 had a related patch set uploaded (by Jgleeson; author: Jgleeson):

[mediawiki/extensions/DonationInterface@master] Log referrer and request URL related to a new donor session.

https://gerrit.wikimedia.org/r/1035804

It looks like the supposed small change required a bunch of extra test updates, so it got snagged. We could pull it back into a future sprint, as it does feel worth finishing.

Change #1035804 merged by jenkins-bot:

[mediawiki/extensions/DonationInterface@master] Log referrer and request URL related to a new donor session.

https://gerrit.wikimedia.org/r/1035804