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';
}
CommentFileSizeAuthor
#1 uc_docdata.patch1.5 KBDocc

Comments

Docc’s picture

StatusFileSize
new1.5 KB

k created a patch with the following enchanments

- unique merchant id
- prevent going back to checkout from Docdata
- Removed the wrong $url variable