Active
Project:
DocData
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Dec 2010 at 10:35 UTC
Updated:
9 Dec 2010 at 12:10 UTC
Jump to comment: Most recent file
In the function _uc_docdata_get_service_url the $url variable is defined twice. With the second overriding the test url if its set. So testing is basicly impossible :)
function _uc_docdata_get_service_url() {
$testmode = variable_get('uc_docdata_testmode', false);
$url = ($testmode ? 'https://test.tripledeal.com/' : 'https://www.tripledeal.com/');
$url = 'https://www.tripledeal.com/';
return $url . 'ps/com.tripledeal.paymentservice.servlets.PaymentService';
}
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | uc_docdata.patch | 1.5 KB | Docc |
Comments
Comment #1
Docc commentedk created a patch with the following enchanments
- unique merchant id
- prevent going back to checkout from Docdata
- Removed the wrong $url variable