Jump to content

Recommended Posts

Posted

I am trying to use the following if/else statement but I think the double quotes in the JSON are causing issues and I'm not sure the proper syntax to get this work correctly. I'm a jasper/groovy newb.

 
$F{PAYMENT_METHOD_DATA}  == '{"deposit_name":"PayNearMe","is_important":true,"logo":"https://nj-cdn-casino.ballyinteractive.com/cms/V3/Deposit-Methods/icon-Paynearme.png"}' ? "PayNearMe" :
$F{PAYMENT_METHOD_DATA} ==  '{"deposit_name":"ACH (Optimal)","withdrawal_name":"ACH (Optimal)","display_order":"101","is_important":true}' ? "ACH" :
$F{PAYMENT_METHOD_DATA} ==  '{"deposit_name":"wire transfer","withdrawal_name":"wire transfer","display_order":"42","is_important":true}' ? "Wire Transfer" :
$F{PAYMENT_METHOD_DATA} ==  '{"deposit_name":"Personal check","withdrawal_name":"Personal check","display_order":"6","is_important":true}' ? "Personal Check" :
$F{PAYMENT_METHOD_DATA} ==  '{"deposit_name":"Cashier''s check","withdrawal_name":"Cashier''s check","display_order":"7","is_important":true}' ? "Cashiers Check"
: "Cash"
 
Thanks,
Jo
  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...