3. Response

Successful response:
<SloklyResponse status="DONE">
  <TXID>eb2e9460431511e2329f404027366ac9</TXID>
  <Time>2014-09-10 22:07:00</Time>
  <Interface>
    <ID>770</ID>
    <Name>example interface / visa and mastercard</Name>
    <Commission>0.013</Commission>
    <Processor>ExampleProcessor</Processor>
  </Interface>
  <FraudDetection>
    <Recommendation>INSPECT</Recommendation>
  </FraudDetection>
</SloklyResponse>
Parameter Type Comments
SloklyResponse @statusstringDONE for success, FAILED for failure
TXIDstringthe transaction id
Interface / IDid the identifier of the interface used for this transaction
Interface / Namestring the name of the interface used for this transaction
Interface / Commissionstring the processing commission percent charged for this transaction (0.013 means 1.3%) 
FraudDetectionnode if used, will return the result of the fraud detection module 

3D redirect response
<SloklyResponse status="REDIRECT">
  <TXID>eb2e9460431511e2329f404027366ac9</TXID>
  <Time>2014-09-10 22:07:00</Time>
  <Interface>
    <ID>770</ID>
    <Name>example interface / visa and mastercard</Name>
    <Commission>0.013</Commission>
    <Processor>ExampleProcessor</Processor>
  </Interface>
  <Redirect>https://slokly.net/3ds/authenticate.php?txid=eb2e9460431511e2329f404027366ac9</Redirect>
  <FraudDetection>
    <Recommendation>DENY</Recommendation>
  </FraudDetection>
</SloklyResponse>
Parameter Type Comments
SloklyResponse @statusstringDONE for success, FAILED for failure
TXIDstringthe transaction id
Redirecturla url to redirect the user in order to authenticate against their issuing bank
FraudDetectionnode if used, will return the result of the fraud detection module 

Failed transaction due to error
<SloklyResponse status="FAILED">
  <TXID>97b37660451e11e2529f404027366ac9</TXID>
  <Time>2012-12-13 12:14:08</Time>
  <Error>
    <Code>901</Code>
    <Message>Authorization declined.: It is not possible to book the given amount from the credit account, e. g. limit is exceeded.</Message>
  </Error>
  <FraudDetection>
    <Recommendation>INSPECT</Recommendation>
  </FraudDetection>
</SloklyResponse>
Parameter Type Comments
SloklyResponse @statusstringDONE for success, FAILED for failure
TXIDstringthe transaction id
Error / Codeidcode id of the failure
Error / Messagetext description of the failure. in the case above, the processor returned an error that there are not enough funds in the client's account in order to make the transaction
FraudDetectionnode if used, will return the result of the fraud detection module 

Failed transaction due to fraud threshold
<SloklyResponse status="FAILED">
  <TXID>95488b428b0311e5bc32404027366ac9</TXID>
  <Time>2013-03-12 10:57:09</Time>
  <Error>
    <Code>711</Code>
    <Message>No Secure Interface available for the given request</Message>
  </Error>
  <FraudDetection>
    <Recommendation>DENY</Recommendation>
    <Score>1234</Score>
    <Explanations>
      <Explanation>IP Country and Billing country does not match: XX vs. YY (+ZZ)</Explanation>
      <Explanation>Reached a score value of 1234 (deny)</Explanation>
      <Explanation>High External Risk Score: 1234 (+ZZ, inspect)</Explanation>
      <Explanation>High-risk, non-refundable transaction (deny)</Explanation>
    </Explanations>
  </FraudDetection>
</SloklyResponse>
Parameter Type Comments
SloklyResponse @statusstringDONE for success, FAILED for failure
TXIDstringthe transaction id
Error / Codeidcode id of the failure
Error / Messagetext description of the failure. in the case above, there was no secure interface available to make the 
FraudDetectionnode the result of the fraud detection module 

Failed due to high commission interface
<SloklyResponse status="FAILED">
  <TXID>55b449d0487215e49014404027342ac9</TXID>
  <Time>2014-09-30 07:35:22</Time>
  <Interface>
    <ID>7083</ID>
    <Name>XXX</Name>
    <Commission>0.02</Commission>
    <Processor>XXX</Processor>
  </Interface>
  <Error>
    <Code>203</Code>
    <Message>A suitable interface was found, but its commission is higher than the allowed commission for this transaction</Message>
    <Details></Details>
  </Error>
</SloklyResponse>
Parameter Type Comments
SloklyResponse @statusstringDONE for success, FAILED for failure
TXIDstringthe transaction id
Interface / Commissionfloat the minimal interface commission value in % (in the case above, 0.02 means 2%) 
Error / Codeidcode id of the failure
Error / Messagetext description of the failure. in the case above, the MaxCommission was too low for the suitable interface
FraudDetectionnode the result of the fraud detection module 
In this case, you can re-send the processing request with a higher value of the MaxCommission node to match the /Interface/Commission node value returned in this response



Comments