PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 4/20/2018 3:58 PM by  Will Strohl
Authorize.NET Declined Payments
 7 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Page 1 of 212 > >>
Author Messages





Basic Member






--
4/3/2018 3:01 PM
    When placing a new order when I process a credit card through Authorize.NET and the card is declined the user gets redirected to the cart page instead of an order page or the checkout page with a message saying the card is declined. I have been searching around trying to figure out how / where this redirect is happening and can not find it. I do have a custom order workflow in place. How can I properly let the user know the transaction was declined and allow them to attempt a new credit card or payment method for an order?





    Veteran Member






    --
    4/8/2018 2:59 PM
    I'm afraid I'm not going to be of much help, because the default behavior here is to redirect the visitor to a modified version of the checkout view when a payment issue occurs. This view will present visitors with the payment issue message. You'll want to review your customizations to any extension point, including the viewset, custom order workflow, and action delegate.
    Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





    Basic Member






    --
    4/9/2018 10:39 AM
    Thanks Will. I will test with a clean install of hotcakes so I can see the default behavior. I know I didn't do anything special with redirects in my workflow so must be something from a view or javascript that I have.





    Basic Member






    --
    4/9/2018 5:25 PM
    I tested using the default views and the default workflows and I am experiencing the same issue. When looking at the cart controller on github I see the Checkout PaymentError Action checks the following:

    if (CurrentCart == null || CurrentCart.Items == null || CurrentCart.Items.Count == 0)
    {
    Response.Redirect(Url.RouteHccUrl(HccRoute.Cart));
    }

    So by the time it gets the declined error on the card it has already placed the order and cleared out the cart, it then redirects me to the cart instead of the payment error page. I am on version 3.0.1

    This is what I have for my LoadProcessNewOrderTasks (which is the only workflow step that happens before the Payment steps) I believe the only difference from the default is that I am doing a CustomDnnCreateUserAccountForNewCustomer step:

    return new Task[]{
    new WorkflowNote("Starting Process Order Workflow"),
    new UpdateOrder(),
    new CheckForZeroDollarOrders(),
    new CustomDnnCreateUserAccountForNewCustomer(),
    new AssignOrderToUser(),
    new AssignOrderNumber(),
    new MakeOrderAddressUsersCurrentAddress(),
    new AddUserAddressesToAddressBook(),
    new UpdateLineItemsForSave(),
    new UpdateOrder(),
    new MakePlacedOrder(),
    new UpdateOrder(),
    new WorkflowNote("Finished Process Order Workflow"),
    new UpdateOrder(),
    };





    Basic Member






    --
    4/10/2018 5:37 PM
    I have added a bug on GitHub for this issue. It includes reproduction steps and a suggestion for a fix.

    https://github.com/Hotcak...erce/core/issues/120

    You are not authorized to post a reply.
    Page 1 of 212 > >>


    Loading
    • Sign-up for the Hotcakes Community Newsletter: