Last modified: 2013-07-18 21:41:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50270, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48270 - Sandbox cURL requests to facilitate local testing
Sandbox cURL requests to facilitate local testing
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
DonationInterface (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Mark Holmquist
:
Depends on:
Blocks: 48269
  Show dependency treegraph
 
Reported: 2013-05-08 19:00 UTC by Mark Holmquist
Modified: 2013-07-18 21:41 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Mark Holmquist 2013-05-08 19:00:42 UTC
From a conversation in #wikimedia-tech. We want to be able to keep cURL requests from going to payment processors and the like, so we can test locally without charging accidentally to credit cards or causing intergalactic crises.

IRC log included in part for posterity:

2013-05-08 - 11:21:31  <K4-713> We can fake it by damaging cURL in a gateway child class and just have it pull in a local form.
2013-05-08 - 11:22:31  <K4-713> So, any time it goes to contact the outside world, it just pulls in HTML from a test dir and *says* it's from the third party. Make sense?
2013-05-08 - 11:22:46  <K4-713> Well, the function that uses cURL.
2013-05-08 - 11:23:09  <K4-713> It's all contained conveniently in one place.
2013-05-08 - 11:23:33  <K4-713> Because I wanted to be able to do exactly this. :)
2013-05-08 - 11:24:33  <K4-713> There it is. "curl_transaction".
2013-05-08 - 11:25:16  <K4-713> Currently line 1284 of DonationInterface/gateway_common/gateway.adapter.php, which all payment adapter classes descend from eventually.
2013-05-08 - 11:26:13  <K4-713> Faking the $retval might be, well... impossible if you don't have some valid account with GC.
Comment 1 Gerrit Notification Bot 2013-05-14 17:38:27 UTC
Related URL: https://gerrit.wikimedia.org/r/63688 (Gerrit Change I450bb7ff97eae01996709bf720399f91c1885672)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links