Results 1 to 2 of 2

Credit Card Processing module

This is a discussion on Credit Card Processing module within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I am trying to modify a credit card module, but since I am fairly new at php, I now need ...

      
  1. #1
    New Member
    Join Date
    May 2003
    Posts
    8
    Rep Power
    0


    Default Credit Card Processing module

    I am trying to modify a credit card module, but since I am fairly new at php, I now need some assistance.

    Here is the portion I want to modify:

    $process_button_string = tep_draw_hidden_field('TP_MERCHANT', MODULE_PAYMENT_ODCBP_LOGIN) .
    tep_draw_hidden_field('TRANSACTION_TYPE', MODULE_PAYMENT_ODCBP_TRANSACTION_TYPE) .
    tep_draw_hidden_field('TP_CC', $this->cc_card_number) .
    tep_draw_hidden_field('TP_CVV2CV2CID', $HTTP_POST_VARS['odcbp_cc_cvv']) .
    tep_draw_hidden_field('TP_EXP', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) .
    tep_draw_hidden_field('TOTAL', number_format($order->info['total'], 2)) .
    tep_draw_hidden_field('Order_ID', $uid) .
    tep_draw_hidden_field('ApprovalURL', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false)) .
    tep_draw_hidden_field('nextpage', tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_ODCBP_TEXT_ERROR), 'SSL', true, false)) .
    tep_draw_hidden_field('DeclinedURL', tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_ODCBP_TEXT_ERROR_DECLINE) , 'SSL', true, false)) .
    tep_draw_hidden_field('NAME', $order->customer['lastname']) .
    tep_draw_hidden_field('Addr1', $order->customer['street_address']) .
    tep_draw_hidden_field('Addr2', $order->customer['']) .// This is a required field
    tep_draw_hidden_field('CITY', $order->customer['city']) .
    tep_draw_hidden_field('STATE', $order->customer['state']) .
    tep_draw_hidden_field('TP_ZIP', $order->customer['postcode']);

    All I want to add, is another line something like this:

    tep_draw_hidden_field('AUTH', "YES") .

    When inserted the line I got an error. Should I define a variable somewhere to equal "YES". SHould I do something like this

    tep_draw_hidden_field('AUTH', $authorization) .

    Any ideas or help would be great. Fortunatly I have the module working, but Its actually charging the credit card. I just need to insert the authorizaton field to authorize the card.

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default

    Are you talking about the CVV code?

    Already done look at:
    CVV for cc.php
    http://www.oscommerce.com/community/contributions,99
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

Similar Threads

  1. Problems with My Account and adding Credit Card processing
    By nakadude in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 04-18-2005, 08:33 AM
  2. Help with EPN credit card processing
    By joanstead in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 03-08-2005, 05:55 PM
  3. Credit card processing
    By ksl8313 in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 02-07-2005, 12:23 AM
  4. Authorize.net cc error processing your credit card
    By _debra in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 09-20-2003, 02:03 PM
  5. help with credit card processing
    By andywong79 in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 04-10-2003, 02:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •