Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ramanathanrv/51d3acf5497dc9840d55264e1c648882 to your computer and use it in GitHub Desktop.
Save ramanathanrv/51d3acf5497dc9840d55264e1c648882 to your computer and use it in GitHub Desktop.
example_switching_dsl_for_axis
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