Created
June 29, 2012 16:40
-
-
Save jdeoliveira/3019077 to your computer and use it in GitHub Desktop.
Construction of the credit rejection response by a PHP script
This file contains hidden or 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
<scripting:component doc:name="Prepare rejection response"> | |
<scripting:script engine="php"> | |
<scripting:text> | |
<![CDATA[ | |
<?php | |
$request = json_decode($payload, true); | |
$response["outcome"] = $message->getProperty("outcome"); | |
$response["maxAmount"] = $request["maxAmount"]; | |
return json_encode($response); | |
?> | |
]]> | |
</scripting:text> | |
</scripting:script> | |
</scripting:component> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment