Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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