Users now have the ability to add multiple Payment Gateways to their accounts due to the newly introduced revamped Payment Gateway Module. Great, right? However, how will you determine which Gateway is selected under a specific circumstance? Payment rules were created to assist users in selecting which Payment Gateway should be selected under a given circumstance.
Payment rules allow you to specify which gateway to use for which channel or rental. For example, you can select your Stripe gateway to be used for Rental A and your Paypal gateway to be used for Rental B. Even further, you can specify that Stripe is only used for Rental A when bookings come from Expedia.com, otherwise use Paypal.
These rules allow a significant amount of flexibility and specificity so you can automatically select gateways as needed. Here is some detail about exactly how Webready processes your payment rules in the event that you have multiple rules which may potentially match a scenario.
Webready will first look for a rule that matches the channel and rental of the booking and use the matched rule.
If no matching rule is found, Webready will then look for a rule matching only the rental and all channels.
If no matching rule is found, Webready will then look for a rule matching the channel and all rentals.
If no matching rule is found, Webready will then use the default gateway.
If there is no default gateway, Webready will select a gateway at random. You want to avoid this and at least set a default gateway at all times.