Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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.
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted