WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
WooCommerce CCAvenue gateway Not working (30 posts)

  1. chulbulstore
    Member
    Posted 5 months ago #

    After I have updated my website http://www.chulbulstore.com woocommerce plugin to 2.1.0.

    I am getting the following error after the checkout page

    {"result":"failure","messages":"
    \n\t\t\t
    Country<\/strong> is a required field.<\/li>\n\t\t\t
    First Name<\/strong> is a required field.<\/li>\n\t\t\t
    Last Name<\/strong> is a required field.<\/li>\n\t\t\t
    Address<\/strong> is a required field.<\/li>\n\t\t\t
    Town \/ City<\/strong> is a required field.<\/li>\n\t\t\t
    State \/ County<\/strong> is a required field.<\/li>\n\t\t\t
    Postcode \/ Zip<\/strong> is a required field.<\/li>\n\t\t\t
    Email Address<\/strong> is a required field.<\/li>\n\t\t\t
    Phone<\/strong> is a required field.<\/li>\n\t\t\t
    You must accept our Terms & Conditions.<\/li>\n\t\t\t
    Unfortunately we do not ship to to <\/strong>. Please enter an alternative shipping address.<\/li>\n\t\t\t
    Invalid shipping method.<\/li>\n\t\t\t
    Invalid payment method.<\/li>\n\t<\/ul>","refresh":"false","reload":"false"}

    Please help

    https://wordpress.org/plugins/woocommerce/

  2. Claudio Sanches
    Member
    Posted 5 months ago #

    This is a issue with your theme.
    Has any pending update for your theme?

  3. chulbulstore
    Member
    Posted 5 months ago #

    There is no update of the theme available.

  4. Claudio Sanches
    Member
    Posted 5 months ago #

    Try another theme.
    Will probably need to delete or improve something within woocommerce/checkout within your theme folder.

  5. circus1
    Member
    Posted 5 months ago #

    I have the same problem with another payment gateway after upgrade to 2.1.
    I created example shop with default theme and error is still.

  6. circus1
    Member
    Posted 5 months ago #

    ...

  7. chulbulstore
    Member
    Posted 5 months ago #

    I rolled back to the previous version of woocommerce 2.0.20 to solve all these problems.

  8. circus1
    Member
    Posted 5 months ago #

    ...

  9. Claudio Sanches
    Member
    Posted 5 months ago #

    Back to the previous version is not solving the problem.
    It's just afraid to get ready!
    Your theme is broken, needs to be fixed.

  10. circus1
    Member
    Posted 5 months ago #

    I think that problem is not connected with theme.
    I use default theme 'Twenty Twelve' and problem is still.

    I did test transaction with paypal payment gateway and everything was correct.

  11. circus1
    Member
    Posted 5 months ago #

    ok, i solved it.

    i repleced in payment gateway php script in function process_payment:
    get_permalink(get_option('woocommerce_pay_page_id');

    on:
    get_permalink(woocommerce_get_page_id('pay' );

  12. mikejolley
    Member
    Plugin Author

    Posted 5 months ago #

    I suggest you report this to the author of CCAvenue. The pay 'page' no longer exists - they should have put out an update to fix this by now (they have had 3 months).

  13. markluchauer
    Member
    Posted 5 months ago #

    Using Shelflife Theme and updated to WooCommerce 2.1.0.

    Now, when a customer tries to checkout using Paypal Payments Advanced, they get this error:

    {"result":"failure","messages":"
    \n\t\t\t
    Country<\/strong> is a required field.<\/li>\n\t\t\t
    First Name<\/strong> is a required field.<\/li>\n\t\t\t
    Last Name<\/strong> is a required field.<\/li>\n\t\t\t
    Address<\/strong> is a required field.<\/li>\n\t\t\t
    Town \/ City<\/strong> is a required field.<\/li>\n\t\t\t
    State<\/strong> is a required field.<\/li>\n\t\t\t
    Zip<\/strong> is a required field.<\/li>\n\t\t\t
    Email Address<\/strong> is a required field.<\/li>\n\t\t\t
    Phone<\/strong> is a required field.<\/li>\n\t\t\t
    Unfortunately we do not ship to to <\/strong>. Please enter an alternative shipping address.<\/li>\n\t\t\t
    Invalid shipping method.<\/li>\n\t\t\t
    Invalid payment method.<\/li>\n\t<\/ul>","refresh":"false","reload":"false"}

  14. Chirag Vora
    Member
    Posted 5 months ago #

    I am facing same problem with PayZippy gateway: http://wordpress.org/plugins/woocommerce-payzippy-payment-gateway/

    My themes is latest version of canvas.

    {"result":"failure","messages":"
    \n\t\t\t
    Name<\/strong> is a required field.<\/li>\n\t\t\t
    Surname<\/strong> is a required field.<\/li>\n\t\t\t
    Address<\/strong> is a required field.<\/li>\n\t\t\t
    Town \/ City<\/strong> is a required field.<\/li>\n\t\t\t
    State<\/strong> is a required field.<\/li>\n\t\t\t
    Pincode<\/strong> is a required field.<\/li>\n\t\t\t
    Mobile<\/strong> is a required field.<\/li>\n\t\t\t
    Email Address<\/strong> is a required field.<\/li>\n\t\t\t
    You must accept our Terms & Conditions.<\/li>\n\t\t\t
    Invalid payment method.<\/li>\n\t<\/ul>","refresh":"false","reload":"false"}

    I just checked everything after upgrade to WC 2.1 and observed this happen. I will report this to PayZippy Team.

  15. prasenjitp04
    Member
    Posted 5 months ago #

    I have same problem and it seems I have to go back to previous version..
    Kindly help me to install the previous version...I have downloaded the previous version...Now,should I first delete the latest version the upload the previous one???? If I delete that my settings will remain intact or not???

    Please help....

  16. mRova
    Member
    Posted 5 months ago #

    Open plugins > ccavenue-payment-gateway-woocommerce > index.php.
    Search for process_payment function and replace it with the following code.

    function process_payment($order_id){
                $order = new WC_Order($order_id);
                return array('result' => 'success', 'redirect' => $order->get_checkout_payment_url( true ));
            }

    http://www.mrova.com/woocommerce-ccavenue-gateway-by-mrova/#comment-1240669900

  17. Chirag Vora
    Member
    Posted 5 months ago #

    @prasenjitp04 going back is not solving the problem. Reach out to CCAvenue and ask them to update their plugin. I've posted the problem with PayZippy.

  18. JK Kim
    Member
    Posted 5 months ago #

    Thanks @circus1. Your solution is very helpful.

  19. mikejolley
    Member
    Plugin Author

    Posted 5 months ago #

    FYI they need to replace their get_permalink for the pay page with $order->get_checkout_payment_url( true ); This gets the correct endpoint and appends order ID.

  20. Chirag Vora
    Member
    Posted 5 months ago #

    Please help me out with fixing same problem with Payzippy.
    https://wordpress.org/plugins/woocommerce-payzippy-payment-gateway/

  21. jodhavishalsingh
    Member
    Posted 5 months ago #

    @Claudio

    sorry bro but delete within woocommerce/checkout from theme folder is also not solution.

  22. jodhavishalsingh
    Member
    Posted 5 months ago #

    sorry but i think 2.1 is the most terrible release of woocommerce.

  23. baldgoat
    Member
    Posted 4 months ago #

    You're the man @circus1!

    I have my own custom gateway built and was having trouble seeing where the issue was since moving to 2.1. That did the trick for me.

  24. Chirag Vora
    Member
    Posted 4 months ago #

    @jodhavishalsingh initially you'll feel like that. That's what people said even during migration to 2.0
    Slowly you will get accustomed and start realizing the benefits... each release is more scalable than the previous one.

  25. alpinisto
    Member
    Posted 4 months ago #

    While troubleshooting a client's site I had to reinstall woocommerce and ended up with v2.1.2. I'm trying to fix the problem listed above and I think I need to know what to replace in this line of the Authorize.net plugin code:

    within process_payment, and under "thank you redirect" this is the old line, after 'result' => success:
    'redirect' => add_query_arg('key', $order->order_key, add_query_arg('order', $order_id, get_permalink(get_option('woocommerce_thanks_page_id'))))

    I replaced with this:
    'redirect' => add_query_arg('key', $order->order_key, add_query_arg('order', $order_id, get_site_url().'/checkout/order-received/'))

    but it is redirecting to an empty Cart page. can you see anything wrong with what I have?

    I intend to get a new Authorize.net plugin, but am awaiting the login details from the client, and in the meantime want to fix this one.

    **
    Problem details:

    Orders were returning the same {"result":"failure","messages":" etc etc as mentioned, but with the orders going through.

    {Note that we are using Merchant, one of your themes, though for some reason, woocommerce doesn't know that (there is a message saying "your theme does not declare woocommerce support).}

    We are using an Authorize.net extension, called 'WooCommerce Authorize.net Gateway' v1.4.1 by Daniel Espinoza, though I can't find an update offered or track down the plugin site. I'm trying to get a better Authorize.net plugin set up but I'm waiting on some Authorize credentials from the client. meanwhile I am editing that plugin to try to get the success redirect to work.

  26. MookeNZ
    Member
    Posted 4 months ago #

    Hi

    Thx @mRova your solution

    function process_payment($order_id){
    $order = new WC_Order($order_id);
    return array('result' => 'success', 'redirect' => $order->get_checkout_payment_url( true ));
    }

    has worked for my issue with Payment Express plugin. However it does briefly redirect via the order received page - so the user sees a flash of another page before the payment gateway opens up. Is there a way to eliminate this segway?

    Cheers,
    Mooke

  27. forestedge
    Member
    Posted 4 months ago #

    Had the same issue with CardSave plugin after upgrade to WooCommerce 2.1.3.

    Updated the plugin per @circus1's instructions and all working correctly now.

    Thanks!

  28. Daniel Espinoza
    Member
    Posted 4 months ago #

    @alpinisto the v1.4.1 plugin of Authorize.net you are using is almost 2 years old. It is not compatible with WC 2.0.

    You need to login to the My Account area of WooThemes.com and download the new version of Authorize.net AIM.

  29. dustjackettech
    Member
    Posted 4 months ago #

    The interim solution can be found here.

  30. madssingers
    Member
    Posted 2 months ago #

    I'm not hyper technical, but hoping you guys can help me, since I have the same issue with a Barclays plugin.
    I think the below is the piece of code as far as I can see from your guidance above:

    function process_payment($order_id) {
    global $woocommerce;

    $order = new WC_Order($order_id);

    return array(
    "result" => "success",
    "redirect" => add_query_arg("order", $order->id, add_query_arg("key", $order->order_key, get_permalink(get_option("woocommerce_pay_page_id"))))
    );

    }

    function receipt_page($order) {
    print("<p>" . __("Thank you for your order, please click the button below to pay with Barclays.", "woothemes") . "</p>");
    print($this->generate_barclays_form($order));
    }

Reply

You must log in to post.

About this Plugin

About this Topic