Hi, I recently downloaded Ubercart E-PDQ and tested it out on my Barclays Payment I believe the Ubercart Checkout submits the billing address into the delivery address at the epdq gateway. I have done an update and attached it.

I believe the error occurs in code between lines 172 to 186 in original code.

I have put comments in new code.

CommentFileSizeAuthor
uc_epdq.zip10.39 KBaosiname

Comments

aosiname’s picture

There may be a way to do this without using my code. I believe in Ubercart you can swap round which appears first - billing or delivery address.

Dunno if it will work but its worth a try.

geodaniel’s picture

Status: Active » Needs review
knigh7’s picture

I agree I think this is a bug
it send the delivery address instead, what I have done is replace lines 172 to 186

and it worked like a charm

$data['epdqdata'] = str_replace(' $data['epdqdata'] = str_replace('">', '', $data['epdqdata']);
$data['cpi_logo'] = 'secure_JPEG/GIF/PNG_URL';
$data['returnurl'] = variable_get('uc_epdq_returnurl', '');
$data['merchantdisplayname'] = variable_get('uc_epdq_merchantdisplayname', '');
$data['baddr1'] = $order->billing_street1;
$data['baddr2'] = $order->billing_street2;
$data['bfullname'] = $order->billing_first_name .' '. $order->billing_last_name;
$data['bcity'] = $order->billing_city;
$data['bpostalcode'] = $order->billing_postal_code;
$data['bcountry'] = $order->billing_country; //$country[0]['country_iso_code_2'];
$data['btelephonenumber'] = $order->billing_phone;
$data['email'] = $order->primary_email

avpaderno’s picture

Assigned: aosiname » Unassigned
Issue summary: View changes
Status: Needs review » Closed (outdated)
Issue tags: -Ubercart, -, -aosiname, -epdq billing address, -epdq not working

I am closing this issue, since it's for a Drupal version no longer supported.