public string function GetResponse( struct data required ) localmode="modern" {
response = "";
// processing logic which sets the var to some string like 'approved'
return response;
}
public boolean function RunRefund( struct data required ) localmode="modern" {
sLocalData = duplicate(arguments.data);
response = GetResponse(sLocalData);
if( response === "Approved" ) {
bSuccessful = true;
// ...
}
else {
bSuccessful = false;
if( sLocalData["gateway"] != "paypal" ) {
sLocalData["gateway"] = "paypal";
RunRefund(sLocalData);
// do I need a break here like so:
break;
}
}
return bSuccessful;
}
Igal Sapir
Lucee Core Developer
Lucee.org
--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/325cecae-a13e-4cc4-b946-4774fb62cf8c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.