1 reply [Last post]
jimijamesi's picture
Offline
Joined: 08/19/2007
Juice: 75
Was this information Helpful?

Hi I am trying to develop a payment gateway for beanstream (TD bank) in Canada

After submitting the order I get this error

We were unable to process your credit card payment. Please verify your card details and try again. If the problem persists, contact us to complete your order.

which is a result of this function in the credit module im not sure why im stuck on (!$pass) Im not foloowing the logic and not sure whats missing...


function uc_credit_order($op, &$arg1, $arg2) {
  switch ($op) {
    case 'submit':
      if ($arg1->payment_method == 'credit'
       && variable_get('uc_credit_checkout_process', FALSE)) {
        $pass = uc_payment_process('credit', $arg1->order_id, $arg1->order_total, NULL, TRUE, NULL, FALSE);
        if (!$pass) {
          $message = variable_get('uc_credit_fail_message', t('We were unable to process your credit card payment. Please verify your card details and try again.  If the problem persists, contact us to complete your order.'));
          return array(array('pass' => FALSE, 'message' => $message));
        }

I am using uc A8 with php 5.2.4
I have attached the beanstream module that I have modified from the authorize.net module (v. 7e)
Perhaps I should use a different payment gateway template as a starting point (moneris or cybersource)??? Beanstream is fairly simple - no transaction key's etc just post the data

PreviewAttachmentSize
uc_beanstreamcom.module.txt8.64 KB
greg.goforth's picture
Offline
Joined: 08/12/2008
Juice: 49
Re: new payment gateway stuck

I'm having the same problem but with Cybersource. In my case the transactions are actually posting to the test server, but I'm getting the error that I need otverify your card details and try again. Any idea what would cause this?

Greg