Hello
Is there a way to conditionally hide certain payment methods based on the selected delivery option at checkout?
For example, I’d like to hide the Cash Payment (Manual Payment) option when a customer selects shipping instead of local pickup.
It seems like this functionality could potentially be handled through the WIX Checkout Requirements app.
Has anyone successfully implemented this? If so, could you please share how it was achieved?
Rob
2
I checked the functions and while there are conditions for payment methods, there isn’t an output to limit the payment providers.
I think the documentation on payment processing would be a good place to start to see if you can code the logic of accepting payments based on specified criteria.
Thank you, Rob. However, this tutorial focuses on “collecting payments from a site’s visitors outside the context of a Wix App like Wix Stores.”
What I’m referring to is conditionally disabling the manual payment option and accepting only card payments when the customer selects shipping. Conversely, the manual payment option should be available only for Click & Collect orders within the Wix Stores app.
Currently, in the automation functions, there is an input for “Checkout & Orders”, but there are no available conditions based on the selected shipping method, nor any actions related to enabling or disabling specific payment methods.
Ideally, this functionality would work like this:
Input: Checkout & Orders (cart and checkout data)
Condition: Shipping as a delivery method (logical condition: true/false)
Action: Manual Payment Method (show/hide)
Rob
4
Thanks for the thanks.
I mentioned I also didn’t see an action so it’s why I mentioned that you could perhaps try enabling the it via velo code. This might also help as well to help get an idea: Ecom Payment Settings Introduction | Velo
I will share the feedback to the team regarding the output and actions within the functions.