Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Graham Carr 43 posts 263 karma points c-trib
    Aug 24, 2020 @ 20:02
    Graham Carr
    0

    Zero pound payment amount

    Hey Matt,

    Sorry one other question, one of the requirements my client has is that for a particular course that can be added to the basket, they want to provide bulk discount codes to certain organisations who pre-pay a yearly amount to them.

    The idea is that the customer can book the course as normal and add to basket, but they will then use the provided discount code and this will reduce the amount to £0.

    I have successfully created the discount codes and applied to the basket, and indeed the order amount has been set to £0, however at this point it still tries to process via the Opayo payment provider, errors and drops back to the basket (Opayo errro message is 4009 : The Amount including surcharge is outside the allowed range. - which makes sense as they don't allow £0 orders).

    Is there anyway of getting it to bypass the payment method screen and functionality if the total order amount is £0?

    For your reference I am using the Vendr Checkout plugin.

    Thanks,

    Graham

  • Matt Brailsford 4124 posts 22215 karma points MVP 9x c-trib
    Aug 25, 2020 @ 10:01
    Matt Brailsford
    100

    Hey Graham,

    Currently to handle this we have to setup a ZeroValue payment provider (which comes shipped with Vendr) that when used effectively bypasses the payment screen.

    This should however have been setup as part of the Checkout package (unless this is an old install?). When installed, it should run this task to create the zero value payment method https://github.com/vendrhub/vendr-checkout/blob/dev/src/Vendr.Checkout/Pipeline/Implement/Tasks/CreateZeroValuePaymentMethodTask.cs then in the payment method selections screen there is code that should check to see if the order is zero value and if so, auto select that payment method https://github.com/vendrhub/vendr-checkout/blob/dev/src/Vendr.Checkout/Web/UI/App_Plugins/VendrCheckout/Views/VendrCheckoutPaymentMethodPage.cshtml

    I'd double check your configuration and make sure you have the required elements in place.

    Matt

  • Graham Carr 43 posts 263 karma points c-trib
    Aug 26, 2020 @ 06:26
    Graham Carr
    0

    Hey Matt,

    Many thanks, I could have quite possibly deleted that payment method at the beginning thinking it wasn't needed, lol, well I have recreated and all looks to be working fine now.

    Cheers once again.

    Graham

Please Sign in or register to post replies

Write your reply to:

Draft