• Hi!
    im having two issues with the vipps plugin using the WooCommerce Bookings extension.

    1.
    The quick checkout option do not work using Vipps (as it does with PayPal etc) for items in our store configured as a “bookable product” (instead of the standard “single product” option while adding products) as the vipps plugin do not get a “delivery method” while using bookable product type. Would it be possible to fix this? Looks like its getting a “local delivery” delivery option passed by when a “virtual” or “downloadable” product is made..but for bookable products, even if “virtual” is ticked as well, the vipps quick checkout will not work only giving a error saying “shipping details not found” in the vipps.app on the mobile phone.

    2.
    If going via the normal cart and vipps checkout clients can pay for bookable products just fine…at least it appear so in the vipps.app on the phone where customer get that the payment has been approved. But when the customer gets re-directed to the payment confirmation page on the website it says payment pending and in the vipps admin it says that the amount is “reserved” and not “charged”. To actually charge the customer I have to login to the woo backend and set the order to finished or click the “vipps capture” button. This is very confusing for the clients which also receive a auto email from woo store saying its not paid yet and also not good for us as we do not sit stand by the computer to click the capture button. Why is the amt not charged the customer instantly even if it says its done in the vipps.app? In vipps company backend admin it says the amt is “reserved” until we hit the “capture” button. I have compared the vipps plugin with the PayPal plugin (which works perfectly) and what is missing in the vipps setup page compared with paypal is option to choose “authorize” or “authorize and capture”. Would it be possible for you guys to make this option for vipps plugins as well for us to force authorize and capture? It is hopeless to sit and manually capture every single booking that are made via the WooCommerce store like now. Clients getting confirmation pages and auto emails saying its still not paid (even their mobile app says paid) generates lots of customer support and frustration.

    • This topic was modified 6 years, 2 months ago by sigval.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Hi.

    I’m no dev, so question 1, no idea.

    Though, question 2, I’ve read in this forum that this is partly because of norwegian law and partly WooCommerce-standard as of https://docs.woocommerce.com/document/managing-orders/

    I’ve seen some people “complaining” about this, and my advise was to install a plugin that auto-approves/changes the status. Though, none of them works with Vipps. Maybe Vipps devs could implement this as Paypal, Stripe and others have done?

    (I was thinking of something like this: https://www.ads-software.com/plugins/autocomplete-woocommerce-orders/)

    • This reply was modified 6 years, 2 months ago by dahawk.
    Plugin Author Iver Odin Kvello

    (@iverok)

    1.) That’s an interesting issue – if there is no delivery method, Express Checkout will fail, and this isn’t taken into account for carts that don’t need delivery at the moment. I’ve registered this as an issue and will look into it – basically, it should suffice to add a fake zero-cost delivery method.

    Next version will add hooks and filters that will allow you to fix this ad hoc too, but I think this should be discoverable in the standard version.

    2.) For products not requiring processing (virtual/downloadable) next version will add an option to go directly to “Completed/captured”.

    Thread Starter sigval

    (@sigval)

    Perfect! When you you expect to release next version? Do you have a beta I can test out as this is a bit urgent for us? Alternatively, can I pay for some custom work to speed up things?

    Hi!

    Vipps is still working out the complete feature set for the next release, so we have not started on the actual implementation. Therefore we can not give you an exact date.

    If you are in a hurry and would like us to solve your case specifically, you can contact us directly on [email protected]

    Just refer to me og Iver in your email and we will be in touch!

    P?l Martin, WP Hosting

    Plugin Author Iver Odin Kvello

    (@iverok)

    We are now starting work on this from tomorrow and will prioritize this. If you would like to help with testing on your particular platform, the changes will be pushed to the GitHub repo at

    https://github.com/vippsas/vipps-woocommerce

    We will release new versions when we’ve satisified with the testing of each feature, but we can’t guarantee that your exact combination of plugins and setup will work from day one, so it would help if you could join the testing.

    Iver, WP Hosting

    Thread Starter sigval

    (@sigval)

    perfect! lmk when you have upped something you think is ready enough to be tested live and ill be more than happy to test it out on our site ??

    Plugin Author Iver Odin Kvello

    (@iverok)

    I’ve just pushed code to the master branch of the github repos; it would be really helpful if you could test it for your use-case.

    The changes are :

    1) If all products in the cart are virtual (and doesn’t need_shipping()) then a zero-cost pro-forma “no shipping required”-shipping method will be produced for express checkout.

    2) When returning from Vipps, if the order does not need_processing() (that is, is virtual & downloadable) then a capture will be tried. If that is successfull, then the order goes directly to completed status.

    Hi. I have tested now for case 2. virtual and downloadable products. It worked like a charm! However, i think it would be even better if this could be an option in the settings if the order is beeing returned as “processing” or “completed”. Both will release a virtual product, but you can still make changes if necessary before completing the order.

    Plugin Author Iver Odin Kvello

    (@iverok)

    That’s good news!

    As for the final status of orders; I would like to work within the Woocommerce paradigm as much as possible. You can in fact do what you want to do by hooking to the

    woocommerce_payment_complete_order_status

    filter – this takes the incoming status, which will be “completed”, the order id and the order and should return a new status (which should at least be “processing”, since the order will have been captured).

    But remember that you can only do this if the products are actually being “delivered” as they are set to this status. This is true for “Virtual and downloadable” products, but not neccessarily for all virtual products, and there is no third property of products that encode exactly this feature (‘auto-captureable’) in the standard featureset.

    Pending a bit more testing this will then be released shortly as 1.0.5

    Iver, Wp-Hosting

    Plugin Author Iver Odin Kvello

    (@iverok)

    New version 1.0.5 is out – if this still works for you, can you mark this issue resolved?

    Iver, WP Hosting AS

    Thread Starter sigval

    (@sigval)

    Hi!
    thanks for the update! I have upped our live version to 1.0.5 and it seems to work same way as before for our issues. I have never used wordpress or woo before so arrest me if there is something I’m not doing right or have missed, but here is a screenshot of 1) the screen I get in vipps app when I use express checkout..it still says no shipping details found even if its a virtual bookable product that shall not be shipped and the user can not click the pay button that is greyed out. 2) as you see in the product setup its virtual and I have not ticked the box saying it require confirmation. 3) here you can see that the state is still “unpaid”, the funds has been reserved by vipps but its not auto captured as we would like for it to be.
    https://www.dropbox.com/s/95hdcd9ow33inmo/Skjermbilde%202018-09-25%2019.40.09.png?dl=0

    • This reply was modified 6 years, 2 months ago by sigval.
    Plugin Author Iver Odin Kvello

    (@iverok)

    Hello,

    Are these products both “virtual” and “downloadable”? If not, they will not be auto-completable using standard Woo, because what we are using is the “needs_processing()” method.

    There is a filter woocommerce_order_item_needs_processing that can be modified to adapt this for products that are not both virtual and downloadable.

    As for no shipping details: For this we use the needs_shipping() method on the cart, and provide a “No shipping neccessary” method if this returns false. It is possible to customize this too with the new ‘woo_vipps_shipping_methods’ filter.

    Is the plugin you are using for bookable products ‘WooCommerce Bookings’ ?

    Thread Starter sigval

    (@sigval)

    Hi!
    the products are virtual but not downloadable as they are bookings.

    i will look into woocommerce_order_item_needs_processing and woo_vipps_shipping_methods to see if I can get this working. Was hoping your fixes in this new version would take care of this out of the box ??
    Yeah, im using woo bookings for the bookable products.

    • This reply was modified 6 years, 2 months ago by sigval.
    Plugin Author Iver Odin Kvello

    (@iverok)

    Ok; we don’t currently have this plugin so we haven’t been able to test specifically for it.

    Based on standard Woo code the cart *should* not need shipping when all products in it are virtual; and it seems to me that the booking products ought to be not “needs_processing” when you have configured them as in your screenshot.

    We’ll look into testing for this plugin specifically, but can’t state a timeframe at this moment, and of course, other plugins may affect the result.

    Any debugging info you could provide would be very helpful. In particular for the lines in Vipps.class.php line 470:

            // If no shipping is required (for virtual products, say) ensure we send *something* back IOK 2018-09-20
            if (!$acart->needs_shipping()) {
               $methods = array(array('isDefault'=>'Y','priority'=>'0','shippingCost'=>'0.00','shippingMethod'=>__('No shipping required','woo-vipps'),'shippingMethodId'=>'Free:Free;0'));
               $return = array('addressId'=>intval($addressid), 'orderId'=>$vippsorderid, 'shippingDetails'=>$methods);
               $json = json_encode($return);
               header("Content-type: application/json; charset=UTF-8");
               print $json;
               exit();
            }

    and in WC_Gateway_Vipps.class.php line 188:

        // This is for orders that are 'reserved' at Vipps but could actually be captured at once because
        // they don't require payment. So we try to capture, and if successful, call "payment_complete". IOK 2018-09-21
        // do NOT call this unless the order is 'reserved' at Vipps!
        protected function maybe_complete_payment($order) {
            if ('vipps' != $order->get_payment_method()) return false;
            if ($order->needs_processing()) return false; // No auto-capture for orders needing processing
    Thread Starter sigval

    (@sigval)

    would it be possible that I send you a copy of the wo-booking plugin for testing purposes? I’m hesitating to start do custom things to our shop setup and our vipps plugin as that will just cause problems for the people that will take over this project in our swimclub going further as they do not have the knowledge needed to do custom coding. Best would be if it worked as expected out of the box, even when upgraded….

    I upgraded the plugin today to latest version (1.0.6) like anyone with access to the admin would do when it encourage you to do so, purchase via vipps worked fine until the booking had been paid and then the customer was re-directed back to the receipt site which looked like this: https://www.dropbox.com/s/7mbli6pvmbhdpwz/Skjermbilde%202018-10-04%2014.26.52.png?dl=0
    Any idea what caused this? I rolled back latest backup to get rid of 1.0.6 and then all worked as expected again. We dont have any custom things in our install that would cause this so its most likely something in 1.0.6 that is bugging..?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘not working as it should with WooCommerce Bookings’ is closed to new replies.