Hi

Have been working on a gateway for a customer using commonwealth. This module wouldnt work with Commonwealth, here is a diff between current version and my now working version for commonwealth 2 party. Only problem is I cant test with the existing anz, but hope this helps move this module on a little.

diff uc_dialect_pay /home/admin/public_html/sites/all/modules/uc_dialect_pay
diff uc_dialect_pay/uc_dialect_pay.module /home/admin/public_html/sites/all/modules/uc_dialect_pay/uc_dialect_pay.module
41,46c41,46
< // $form['uc_dialect_pay_currency'] = array(
< // '#type' => 'textfield',
< // '#title' => t('Currency code'),
< // '#description' => t('Defaults to AUD'),
< // '#default_value' => variable_get('uc_dialect_pay_currency', 'AUD'),
< // );
---
> $form['uc_dialect_pay_currency'] = array(
> '#type' => 'textfield',
> '#title' => t('Currency code'),
> '#description' => t('Defaults to AUD'),
> '#default_value' => variable_get('uc_dialect_pay_currency', 'AUD'),
> );
52,53c52,53
< '#collapsible' => TRUE,
< '#collapsed' => FALSE,
---
> '#collapsible' => TRUE,
> '#collapsed' => FALSE,
247,249c247,249
< $postData .= 'vpc_SecureHash' . '=' . check_plain(variable_get('uc_dialect_pay_merchant_secure_secret_hash', '')) . $ampersand;
< $postData .= 'vpc_TicketNo' . '=' . substr(urlencode(''), 0, 15) . $ampersand;
< $postData .= 'vpc_TxSource' . '=' . substr(urlencode('INTERNET'), 0, 16) ;
---
> # $postData .= 'vpc_SecureHash' . '=' . check_plain(variable_get('uc_dialect_pay_merchant_secure_secret_hash', '')) . $ampersand;
> # $postData .= 'vpc_TicketNo' . '=' . substr(urlencode(''), 0, 15) . $ampersand;
> # $postData .= 'vpc_TxSource' . '=' . substr(urlencode('INTERNET'), 0, 16) ;
261c261
<
---
> # drupal_set_message('Transmission URL: '. $vpcURL . '?' . $postData);
288c288
< //curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
---
> // curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0);
362,363c362
<
< if ($txnResponseCode != 0) {
---
> if ($txnResponseCode != "0") {
433c432
< return "No Value Returned";
---
> return "No Value Returned";
452a452
> case "E" : $result = t("Bank Declined Transaction"); break;
572c572
< }
\ No newline at end of file
---
> }