Zen Cart Logo
Forums / General Questions / Checkout: How to add entry for CC Bank's Phone number?

Checkout: How to add entry for CC Bank's Phone number?

Locked

Views: 2,262

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
8 Apr 2007, 8:34 PM
#1
harmeet avatar

harmeet

New Zenner

Join Date:
May 2006
Posts:
30
Plugin Contributions:
0

Checkout: How to add entry for CC Bank's Phone number?

Hi

On checkout payment page, under "Payment Method", after CVV number, I want to collect the issuing bank's phone number. So that, I can call the bank to confirm the address.

Does anyone know how to do that?

Thanks

8 Apr 2007, 9:02 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: Checkout: How to add entry for CC Bank's Phone number?

Do you really think your customers are going to take the time to find that piece of information? Besides, that is what your gateway is for.

8 Apr 2007, 9:28 PM
#3
harmeet avatar

harmeet

New Zenner

Join Date:
May 2006
Posts:
30
Plugin Contributions:
0

Re: Checkout: How to add entry for CC Bank's Phone number?

It is usually written at back of the credit card. I can get hold of them if I call my bank and then ask them of the issuing bank's number. Sometimes, it involves 2-3 calls. And each call involves long waiting. So, it would be very convenient if the customer gives me the number in the first place.

I sell cellular phones and the chargeback ratio is very high. So, I manually do everything possible to verify before I charge.

Thanks

9 Apr 2007, 12:24 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Checkout: How to add entry for CC Bank's Phone number?

I am afraid if I had to dig up my bank phone number for you from my credit card that is sitting in my room 2 stories up that I have memoriesed my account number, expiration and CVV ... I'd have to run over to BestBuy to shop ... :eek:

9 Apr 2007, 3:59 AM
#5
harmeet avatar

harmeet

New Zenner

Join Date:
May 2006
Posts:
30
Plugin Contributions:
0

Re: Checkout: How to add entry for CC Bank's Phone number?

You have a good memory Ajeh, that you have memorized your card numbers. I don't think everyone can (I can't). I always have my credit card in my hand when I shop online. I have bought many things online myself, and I have encountered many checkouts where I had to enter the bank phone number. I had no problem entering it.

I understand your point very well, its little bit extra effort for customer. But I don't think it's too much to ask for.

Looks like I have to dive in once again to find out.

Thanks for your opinions.

9 Apr 2007, 4:14 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Checkout: How to add entry for CC Bank's Phone number?

Let us know if you come up with a working solution ... :smile:

10 Apr 2007, 6:53 PM
#7
harmeet avatar

harmeet

New Zenner

Join Date:
May 2006
Posts:
30
Plugin Contributions:
0

Re: Checkout: How to add entry for CC Bank's Phone number?

OK. Done!

These are the files that I had to modify (total 5) -

/catalog/includes/modules/payment/cc.php
In function selection(), search for -

if (MODULE_PAYMENT_CC_COLLECT_CVV == 'True')  {
  $selection['fields'][] = array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_CVV,
    'field' => zen_draw_input_field('cc_cvv', '', 'size="4" maxlength="4" id="'.$this->code.'-cc-cvv"' . $onFocus),
    'tag' => $this->code.'-cc-cvv');
}

Add following after it -

$selection['fields'][] = array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_BN,
  'field' => zen_draw_input_field('cc_bn', '', 'id="'.$this->code.'-cc-bn"' . $onFocus),
  'tag' => $this->code.'-cc-bn');

In function confirmation(), search for -

if (MODULE_PAYMENT_CC_COLLECT_CVV == 'True')  {
  $confirmation['fields'][] = array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_CVV,
    'field' => $_POST['cc_cvv']);
}

Add following after it -

$confirmation['fields'][] = array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_BN,
  'field' => $_POST['cc_bn']);

In function process_button(), search for -

if (MODULE_PAYMENT_CC_COLLECT_CVV == 'True')  {
  $process_button_string .= zen_draw_hidden_field('cc_cvv', $_POST['cc_cvv']);
}

Add following after it -

$process_button_string .= zen_draw_hidden_field('cc_bn', $_POST['cc_bn']);

In function before_process(), search for -

$order->info['cc_cvv'] = $_POST['cc_cvv'];

Add following after it -

$order->info['cc_bn'] = $_POST['cc_bn'];

In function after_order_create(...), search for -

if (MODULE_PAYMENT_CC_COLLECT_CVV == 'True')  {
  $db->execute("update "  . TABLE_ORDERS . " set cc_cvv ='" . $order->info['cc_cvv'] . "' where orders_id = '" . $zf_order_id ."'");
    }

Add following after it -

$db->execute("update " . TABLE_ORDERS . " set cc_bn ='" . $order->info['cc_bn'] . "' where orders_id = '" . $zf_order_id ."'");

/catalog/includes/languages/english/modules/payment/cc.php
Add following line -

define('MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_BN', 'Bank Phone Number:');

/catalog/admin/orders.php
Search for -

<tr>
  <td class="main"><?php echo ENTRY_CREDIT_CARD_EXPIRES; ?></td>
  <td class="main"><?php echo $order->info['cc_expires']; ?></td>
</tr>

Add the following after it -

<tr>
  <td class="main"><?php echo ENTRY_CREDIT_CARD_BN; ?></td>
  <td class="main"><?php echo $order->info['cc_bn']; ?></td>
</tr>

/catalog/admin/includes/languages/english/orders.php
Add following line -

define('ENTRY_CREDIT_CARD_BN', 'Bank Phone Number:');

/catalog/admin/includes/classes/order.php
Search for -

$order = $db->Execute("select cc_cvv, ...

Replace with -

$order = $db->Execute("select cc_cvv, cc_bn, ...

Search for -

'cc_cvv' => $order->fields['cc_cvv'],

Add following line after it -

'cc_bn' => $order->fields['cc_bn'],

That's it!

10 Apr 2007, 7:08 PM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,604
Plugin Contributions:
0

Re: Checkout: How to add entry for CC Bank's Phone number?

... and remember exactly which files you touched because the odds are they will get overwritten in your next upgrade.

10 Apr 2007, 7:13 PM
#9
harmeet avatar

harmeet

New Zenner

Join Date:
May 2006
Posts:
30
Plugin Contributions:
0

Re: Checkout: How to add entry for CC Bank's Phone number?

Good point Kim!