example_switching_dsl_for_axis
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def priorities = ['CYBERSOURCE', 'MIGS'] | |
// above is the default priority | |
if (order.udf1 == 'web') { | |
priorities = ['CYBERSOURCE', 'MIGS'] | |
} | |
else if (order.udf1 == 'mobile' && order.udf2 == 'android') | |
priorities = ['MIGS','CYBERSOURCE'] | |
} | |
else if (card.cardSwitchProvider == 'MASTERCARD') { | |
// route mastercard transactions to Mastercard gateway | |
priorities = ['MIGS','CYBERSOURCE'] | |
} | |
setGatewayPriority(priorities) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment