Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Gateway emulator and Authorize.net

    i use a gateway emulator. i changed the urls in the authorize.net (SIM)
    to the ones i need. it does completes the checkout on the cc side, but does not post the order back to zencart.
    at first it would not return the checkout success page until i changed this 'x_relay_URL' => zen_href_link(FILENAME_CHECKOUT_PROCESS, 'action=confirm', 'SSL', true, false), to 'x_relay_URL' => zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'), now it confirms payment but doesnt register in zencart admin.
    using 1.5.1

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: Gateway emulator and Authorize.net

    are you saying an order does not get created? are you sure?

    i would look at:

    /includes/modules/checkout_process.php

    and see where you are failing.... you must be getting to the before_process function of your payment module.

    i would perhaps put in a break after the $order->create or some echos...

    i would also double check the data base to ensure that the orders are there. you may be missing some element which is preventing the admin from displaying the order.

    but it does seem like you are close.

    good luck!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  3. #3
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: Gateway emulator and Authorize.net

    Orders are not in the db, Before this change 'x_relay_URL' => zen_href_link(FILENAME_CHECKOUT_PROCESS, 'action=confirm', 'SSL', true, false), to 'x_relay_URL' => zen_href_link(FILENAME_CHECKOUT_SUCCESS, '', 'SSL'), it would return back to require user to login, but if you clicked the home button they are still loggedb in with items still in cart.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Gateway emulator and Authorize.net

    Are you sure the location to which the "customer" was taken was the login page instead of the timeout page (which requires login as well)?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: Gateway emulator and Authorize.net

    yes sorry login time out page, if i try to checkout again it says transaction is a duplicate

  6. #6
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: Gateway emulator and Authorize.net

    and still no orders are stored, this is in address bar, https://pcb.transactiongateway.com/c...5611876940b115

  7. #7
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: Gateway emulator and Authorize.net


  8. #8
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Gateway emulator and Authorize.net

    May I suggest that in includes/modules/YOUR_TEMPLATE/checkout_process.php that in this section of code:
    Code:
    // if the customer is not logged on, redirect them to the time out page
    
      if (!$_SESSION['customer_id']) {
    
        zen_redirect(zen_href_link(FILENAME_TIME_OUT));
    
      } else {
    
        // validate customer
    
        if (zen_get_customer_validate_session($_SESSION['customer_id']) == false) {
    
          $_SESSION['navigation']->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_SHIPPING));
    
          zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
    
        }
    
      }
    You add a debug log as provided here:
    Code:
    // if the customer is not logged on, redirect them to the time out page
    
      if (!$_SESSION['customer_id']) {
        trigger_error('No Customer Id in Session', E_USER_WARNING);
    
        zen_redirect(zen_href_link(FILENAME_TIME_OUT));
    
      } else {
    
        // validate customer
    
        if (zen_get_customer_validate_session($_SESSION['customer_id']) == false) {
    
          $_SESSION['navigation']->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_SHIPPING));
    
          zen_redirect(zen_href_link(FILENAME_LOGIN, '', 'SSL'));
    
        }
    
      }
    Then attempt to process a transaction again and look in your logs folder for a new myDebug log file.

    In looking at the default code, this appears to be the place of the issue, but... The above URL doesn't seem to make sense regarding what is in the URI... If that is the content in the URI, then it seems to appear that the processor is not working correctly because if it had come back to ZC, then the browser should have gotten updated with whatever new/next content was expected. At least based on my hasty review.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: Gateway emulator and Authorize.net

    here is my log file
    Jan-11-2018 05:28:03
    =================================

    Response Code: 1.
    Response Text: Approved

    Results Received back from Authorizenet: Array
    (
    [x_response_code] => 1
    [x_response_subcode] => 1
    [x_response_reason_code] => 1
    [x_response_reason_text] => Approved
    [x_auth_code] => 012125
    [x_avs_code] => Y
    [x_trans_id] => 3944062628
    [x_invoice_num] => 3944062628
    [x_description] => Better Tools 20101N20PB 3G Extreme Round 0.017" Carpet Blade MiniPacks ( 20 Blades Per Dispenser ) (qty: 1)
    [x_amount] => 8.21
    [x_method] => CC
    [x_type] => AUTH_CAPTURE
    [x_cust_id] => 293
    [x_first_name] => james
    [x_last_name] => warren
    [x_company] => Floorz -N- More
    [x_address] => 7131-1 us hwy 19
    [x_city] => new port richey
    [x_state] => FL
    [x_zip] => 34652
    [x_country] => US
    [x_phone] => 7278079516
    [x_fax] =>
    [x_email] => [email protected]
    [x_ship_to_first_name] => james
    [x_ship_to_last_name] => warren
    [x_ship_to_company] => Floorz -N- More
    [x_ship_to_address] => 7131-1 us hwy 19
    [x_ship_to_city] => new port richey
    [x_ship_to_state] => FL
    [x_ship_to_zip] => 34652
    [x_ship_to_country] => US
    [x_duty] =>
    [x_freight] => 6.65
    [x_tax_exempt] => FALSE
    [x_tax] => 0.54
    [x_po_num] =>
    [x_md5_hash] => b599e9f49d0d72ac794425d193fc9412
    [x_cvv2_resp_code] => M
    [reserved01] =>
    [reserved02] =>
    [reserved03] =>
    [reserved04] =>
    [reserved05] =>
    [reserved06] =>
    [reserved07] =>
    [reserved08] =>
    [reserved09] =>
    [reserved10] =>
    [reserved11] =>
    [reserved12] =>
    [reserved13] =>
    [reserved14] =>
    [reserved15] =>
    [reserved16] =>
    [reserved17] =>
    [reserved18] =>
    [reserved19] =>
    [reserved20] =>
    [reserved21] =>
    [reserved22] =>
    [reserved23] =>
    [reserved24] =>
    [reserved25] =>
    [reserved26] =>
    [reserved27] =>
    [reserved28] =>
    [reserved29] =>
    [x_MD5_Hash] => b599e9f49d0d72ac794425d193fc9412
    [securityToken] => b4f0777af61e86f05b837b1976161a66
    [x_login] => 9130934
    [x_version] => 3.1
    [x_email_customer] => TRUE
    [x_Customer_IP] => 68.200.122.250
    [x_relay_response] => TRUE
    [x_relay_URL] => http://jnsflooringandsupplies.com/in...action=confirm
    [x_duplicate_window] => 120
    [x_allow_partial_Auth] => FALSE
    [x_fp_sequence] => 967
    [x_fp_timestamp] => 1515709605
    [x_fp_hash] => dea028402855f38a212c7cb0213bb266
    [x_show_form] => PAYMENT_FORM
    [x_receipt_link_method] => POST
    [x_receipt_link_text] => Click here to complete your order.
    [x_receipt_link_url] => http://jnsflooringandsupplies.com/in...eckout_process
    [x_logo_url] => http://jnsflooringandsupplies.com/in...mages/logo.png
    [zenid] => 6nu4t3coi6tirkc33vv99lbte2
    [referrer_url] => http://jnsflooringandsupplies.com/in...action=process
    [HashValidationValue] => 88FACE094EBFE0E62575E6B629EF6E8E
    [HashMatchStatus] => FAIL
    [url] => https://pcb.transactiongateway.com/cart/ausi.php
    )

  10. #10
    Join Date
    Jan 2013
    Posts
    811
    Plugin Contributions
    0

    Default Re: Gateway emulator and Authorize.net

    they say zencart seems not to be able to handle this response that it sends back

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Authorize.net AIM and InternetSecure Gateway
    By crestlinecorp in forum Built-in Shipping and Payment Modules
    Replies: 5
    Last Post: 26 Nov 2015, 12:05 PM
  2. v139e First Data Global Gateway and Authorize.net
    By Rahbi in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 22 Jan 2014, 12:12 AM
  3. v150 Difference Between Authorize.net (SIM) and Authorize.net (AIM)
    By joem83 in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 30 Aug 2012, 10:48 PM
  4. Authorize.net Emulator problem
    By rossi in forum General Questions
    Replies: 3
    Last Post: 25 Apr 2009, 06:42 AM
  5. Authorize.net gateway
    By RichardLynch in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 7 Sep 2006, 05:51 AM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR