Created
April 18, 2017 08:58
-
-
Save ramanathanrv/51d3acf5497dc9840d55264e1c648882 to your computer and use it in GitHub Desktop.
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