Results 1 to 10 of 199

Hybrid View

  1. #1
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Authorize.net API with Card on File transactions support thread...

    rick,
    can you add one line of code? lets add a line between 955 and 956 and modify 957 (the old 956) as below:

    PHP Code:
               $transactionRequestType->setTransactionType("authCaptureTransaction");
               
    trigger_error($order->info['total']);
               
    $transactionRequestType->setAmount(number_format($order->info['total'], 2'.''')); 
    we then should have another debug log and we can see what amount is actually in that info total. and maybe this will resolve our issue.

    thanks!
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  2. #2
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Authorize.net API with Card on File transactions support thread...

    My current lines 955-957 just to make sure nothing fatfingered
    Code:
      $transactionRequestType->setTransactionType("authCaptureTransaction");
                trigger_error($order->info['total']);             
                $transactionRequestType->setAmount(number_format($order->info['total'], 2, '.', ''));
    /includes/modules/payment/authorizenet_cim.php

    I didn't expect the error to change.

    First pass through checkout
    Use saved card on file
    Error 5
    Second pass
    Session expired and wiped out cart
    rebuild cart
    checkout using a different card
    Error 33 now

    MyDebug
    Code:
    [27-Apr-2020 13:46:34 America/Los_Angeles] Request URI: /index.php?main_page=checkout_process, IP address: 98.146.164.107
    #1  trigger_error() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:956]
    #2  authorizenet_cim->chargeCustomerProfile() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:325]
    #3  authorizenet_cim->before_process() called at [/home/chainwea/public_html/includes/classes/payment.php:246]
    #4  payment->before_process() called at [/home/chainwea/public_html/includes/modules/checkout_process.php:92]
    #5  require(/home/chainwea/public_html/includes/modules/checkout_process.php) called at [/home/chainwea/public_html/includes/modules/pages/checkout_process/header_php.php:14]
    #6  require(/home/chainwea/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/chainwea/public_html/index.php:36]
    --> PHP Notice: 27.0339 in /home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php on line 956.
    
    [27-Apr-2020 13:46:34 America/Los_Angeles] Request URI: /index.php?main_page=checkout_process, IP address: 98.146.164.107
    #1  trigger_error() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:447]
    #2  authorizenet_cim->logError() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:1023]
    #3  authorizenet_cim->chargeCustomerProfile() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:325]
    #4  authorizenet_cim->before_process() called at [/home/chainwea/public_html/includes/classes/payment.php:246]
    #5  payment->before_process() called at [/home/chainwea/public_html/includes/modules/checkout_process.php:92]
    #6  require(/home/chainwea/public_html/includes/modules/checkout_process.php) called at [/home/chainwea/public_html/includes/modules/pages/checkout_process/header_php.php:14]
    #7  require(/home/chainwea/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/chainwea/public_html/index.php:36]
    --> PHP Notice: Transaction Failed 
     Error code  : 33
     Error message : Card Code is required.
     in /home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php on line 447.

  3. #3
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Authorize.net API with Card on File transactions support thread...

    Quote Originally Posted by RixStix View Post

    I didn't expect the error to change.
    oh, yee of little faith...

    on the admin -> modules -> payment -> install, do you have the request CVV set to true or false? if set to false, you need to set it to true.

    few things:

    • first bug, appreciate the help
    • remove line 956 that has that trigger error command; we no longer need that line. leave the other line changed as is.
    • you will now need to delete that stored credit card as it did not have a code when we stored it. this is easily accomplished on the admin side by looking up the customer and you should see a button for delete stored credit cards. execute that. you should get a pop-up confirm window.
    • then try the order again.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  4. #4
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Authorize.net API with Card on File transactions support thread...

    Quote Originally Posted by carlwhat View Post
    oh, yee of little faith...

    on the admin -> modules -> payment -> install, do you have the request CVV set to true or false? if set to false, you need to set it to true.

    few things:

    • first bug, appreciate the help
    • remove line 956 that has that trigger error command; we no longer need that line. leave the other line changed as is.
    • you will now need to delete that stored credit card as it did not have a code when we stored it. this is easily accomplished on the admin side by looking up the customer and you should see a button for delete stored credit cards. execute that. you should get a pop-up confirm window.
    • then try the order again.
    request CVV was already set to TRUE
    line 956 removed
    credit card deleted (worked perfectly)

    ERROR 33 displayed on checkout window
    Option for Stored Credit Card is now added to the top of the payment choices (I forgot to uncheck the "Keep Card on file" box)

    Resubmit after checking the Stored Credit Card selection
    OPC alarm: Your order's details have changed. Please review the current values and re-submit.
    Resubmit & ERROR 33

    Code:
    [27-Apr-2020 13:46:34 America/Los_Angeles] Request URI: /index.php?main_page=checkout_process, IP address: 98.146.164.107
    #1  trigger_error() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:956]
    #2  authorizenet_cim->chargeCustomerProfile() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:325]
    #3  authorizenet_cim->before_process() called at [/home/chainwea/public_html/includes/classes/payment.php:246]
    #4  payment->before_process() called at [/home/chainwea/public_html/includes/modules/checkout_process.php:92]
    #5  require(/home/chainwea/public_html/includes/modules/checkout_process.php) called at [/home/chainwea/public_html/includes/modules/pages/checkout_process/header_php.php:14]
    #6  require(/home/chainwea/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/chainwea/public_html/index.php:36]
    --> PHP Notice: 27.0339 in /home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php on line 956.
    
    [27-Apr-2020 13:46:34 America/Los_Angeles] Request URI: /index.php?main_page=checkout_process, IP address: 98.146.164.107
    #1  trigger_error() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:447]
    #2  authorizenet_cim->logError() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:1023]
    #3  authorizenet_cim->chargeCustomerProfile() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:325]
    #4  authorizenet_cim->before_process() called at [/home/chainwea/public_html/includes/classes/payment.php:246]
    #5  payment->before_process() called at [/home/chainwea/public_html/includes/modules/checkout_process.php:92]
    #6  require(/home/chainwea/public_html/includes/modules/checkout_process.php) called at [/home/chainwea/public_html/includes/modules/pages/checkout_process/header_php.php:14]
    #7  require(/home/chainwea/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/chainwea/public_html/index.php:36]
    --> PHP Notice: Transaction Failed 
     Error code  : 33
     Error message : Card Code is required.
     in /home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php on line 447.

  5. #5
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Authorize.net API with Card on File transactions support thread...

    rick,
    this is the same log as the one above. you can see it based on the timestamp. and the order total of 27.0339. that problem was corrected with the code and if you removed line 956, we should not see that notice in the middle of the log.

    i'm not exactly sure what you are seeing now. it might behove you to logout and log back in. the error 33 is related to the 3 digit codes that look to be required (although not in the sandbox environment). so make sure that is set to true. and make sure to input a new card.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  6. #6
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Authorize.net API with Card on File transactions support thread...

    OOPS. Log folder scrolled on me.
    I know the CVV is either 3 or 4 digit code
    Tried Visa and MC


    Code:
    [27-Apr-2020 14:24:58 America/Los_Angeles] Request URI: /index.php?main_page=checkout_process, IP address: 98.146.164.107
    #1  trigger_error() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:447]
    #2  authorizenet_cim->logError() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:1022]
    #3  authorizenet_cim->chargeCustomerProfile() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cof.php:143]
    #4  authorizenet_cof->before_process() called at [/home/chainwea/public_html/includes/classes/payment.php:246]
    #5  payment->before_process() called at [/home/chainwea/public_html/includes/modules/checkout_process.php:92]
    #6  require(/home/chainwea/public_html/includes/modules/checkout_process.php) called at [/home/chainwea/public_html/includes/modules/pages/checkout_process/header_php.php:14]
    #7  require(/home/chainwea/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/chainwea/public_html/index.php:36]
    --> PHP Notice: Transaction Failed 
     Error code  : 33
     Error message : Card Code is required.
     in /home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php on line 447.

  7. #7
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,915
    Plugin Contributions
    13

    Default Re: Authorize.net API with Card on File transactions support thread...

    Quote Originally Posted by RixStix View Post
    OOPS. Log folder scrolled on me.
    I know the CVV is either 3 or 4 digit code
    Tried Visa and MC


    Code:
    [27-Apr-2020 14:24:58 America/Los_Angeles] Request URI: /index.php?main_page=checkout_process, IP address: 98.146.164.107
    #1  trigger_error() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:447]
    #2  authorizenet_cim->logError() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php:1022]
    #3  authorizenet_cim->chargeCustomerProfile() called at [/home/chainwea/public_html/includes/modules/payment/authorizenet_cof.php:143]
    #4  authorizenet_cof->before_process() called at [/home/chainwea/public_html/includes/classes/payment.php:246]
    #5  payment->before_process() called at [/home/chainwea/public_html/includes/modules/checkout_process.php:92]
    #6  require(/home/chainwea/public_html/includes/modules/checkout_process.php) called at [/home/chainwea/public_html/includes/modules/pages/checkout_process/header_php.php:14]
    #7  require(/home/chainwea/public_html/includes/modules/pages/checkout_process/header_php.php) called at [/home/chainwea/public_html/index.php:36]
    --> PHP Notice: Transaction Failed 
     Error code  : 33
     Error message : Card Code is required.
     in /home/chainwea/public_html/includes/modules/payment/authorizenet_cim.php on line 447.
    rick,
    lets go over a few things.

    • authorize.net will respect the production v test/sandbox credentials. they go to different end points.
    • those successful transactions that you see are the creation of a token at authorize. i believe they used to a $1 auth; but now they do a $0 auth.
    • its possible they will void those transactions as they are just testing to see if the card is good.
    • they will not void a live transaction unless instructed by the merchant, aka you.
    • if you successfully charged any card, you would have a completed order and a payment record, and some order notes... assuming we do not see mysql errors, which is always possible.
    • you keep on getting this error 33 card code is required. i had previously asked you to delete the stored credit cards; ensure that the cvv code is set to true, and then try again.
    • the error log i am quoting here would indicate that is not the case. we have yet to have an order go through? true? but we have stored some credit cards. this log here comes from the card on file transaction. you can see that on line #3 in the log, where the script it references is authorizenet_cof.php. that's the card on file script.
    • i have researched the chargeCustomerProfile, and there is no opportunity to send the CVV there. it can only be done with the createProfile (save a credit card) transaction.
    • if you are sure you saved this credit card with the CVV number intact, which is what i would recommend, you should login to authorize.net, and Click Settings in the main left side menu -> Click Payment Form -> Click Form Fields -> Uncheck the field provided in the Error 33 text. -> Click Submit
    • that is documented right here: https://developer.authorize.net/api/...s.html?code=33
    • it is entirely possible that setting on your merchant dashboard is what is causing the problem.


    lets see if that resolves it all!

    best.
    author of square Webpay.
    mxWorks now has Apple Pay and Google Pay. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

  8. #8
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Authorize.net API with Card on File transactions support thread...

    FWIW, Auth.net emailed a receipt for the last test.

    Am I missing a switch? Set Production and livemode in settings.

    Email sounds like this is sandbox not production.
    Auth only, not auth and capture
    ========= ORDER INFORMATION =========
    Invoice : none
    Description : Test transaction for ValidateCustomerPaymentProfile.
    Amount : 0.00 (USD)
    Payment Method: Visa xxxx0076
    Transaction Type: Authorization Only

  9. #9
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Authorize.net API with Card on File transactions support thread...

    Nope. LIVE

    All test transactions are showing VOIDED in Unsettled list in Auth.net interface
    Last edited by RixStix; 27 Apr 2020 at 11:00 PM. Reason: Setting is LIVE

 

 

Similar Threads

  1. v155 Saving Credit Card Info with Authorize.Net
    By magneto in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 25 Jan 2021, 10:28 PM
  2. v154 Having Issues With Duplicate Transactions in Authorize.net
    By CSGODeimos in forum General Questions
    Replies: 1
    Last Post: 27 Sep 2017, 02:53 PM
  3. v151 Duplicate transactions authorize.net AIM
    By badarac in forum Built-in Shipping and Payment Modules
    Replies: 9
    Last Post: 9 Aug 2016, 03:52 PM
  4. Replies: 1
    Last Post: 31 May 2006, 05:06 PM

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