'') $replyType = 'RAW REPLY: '; else $replyType = "No Reply available."; } $messageToSend = sprintf( "STATUS: %d\nERROR INFO: %s\nREQUEST: \n%s\n%s\n$s\n", nStatus, $reply[CYBS_SK_ERROR_INFO], getArrayContent( $request ), $replyType, $replyText ); // send $messageToSend to the appropriate personnel at your company // using any suitable method, e.g. e-mail, multicast log, etc. // // This sample code simply sends it to standard output. printf( "\nThis is a critical error. Send the following information to the appropriate personnel at your company: \n%s\n", $messageToSend ); } //----------------------------------------------------------------------------- function getFaultContent( $reply ) //----------------------------------------------------------------------------- { $requestID = $reply[CYBS_SK_FAULT_REQUEST_ID]; if ( $requestID == "") $requestID = "(unavailable)"; return( sprintf( "Fault code: %s\nFault string: %s\nRequestID: %s\nFault document: %s", $reply[CYBS_SK_FAULT_CODE], $reply[CYBS_SK_FAULT_STRING], $requestID, $reply[CYBS_SK_FAULT_DOCUMENT] ) ); } //----------------------------------------------------------------------------- function getArrayContent( $arr ) //----------------------------------------------------------------------------- { $content = ''; while (list( $key, $val ) = each( $arr )) { $content = $content . $key . ' => ' . $val . "\n"; } return( $content ); } //----------------------------------------------------------------------------- function getReplyContent( $reply ) { //----------------------------------------------------------------------------- $reasonCode = $reply['reasonCode']; switch ( $reasonCode ) { // Success case '100': return( sprintf( "Request ID: %s\nAuthorizedAmount: %s\nAuthorization Code: %s", $reply['requestID'], $reply['ccAuthReply_amount'], $reply['ccAuthReply_authorizationCode'] ) ); break; ####################################################################### // The request is missing one or more required fields. case '101': $i = 0; $res = ''; // getting missed fileds from response while ( !empty( $reply['missingField_'.$i] ) ) { $res .= $reply['missingField_'.$i] ."\n"; $i++; } return( "Some required fields are missed:\n". $res ); break; ####################################################################### // One or more fields in the request contains invalid data. case '102': $i = 0; $res = ''; // getting missed fileds from response while ( !empty( $reply['invalidField_'.$i] ) ) { $res .= $reply['invalidField_'.$i] ."\n"; $i++; } return( "Following fields contain invalid data:\n". $res ); break; ####################################################################### // Invalid Credit Card Number case '231': return( "The credit card number is declined! Please try different credit card." ); break; ####################################################################### // Expired credit card case '202': return( "This credit card has expired! Please try different credit card." ); break; ####################################################################### // Insufficient funds case '204': return( sprintf( "Insufficient funds in account. Please use a different card or select another form of payment." ) ); break; ####################################################################### // Add other reason codes here that you need to handle // specifically // For all other reason codes, return an empty string, // in which case, you should display a generic message // appropriate to the decision value you received. default: return ( $reasonCode ); break; } } ?> Precious Metals Quote, Gold Prospecting, Mining Stocks, and Investments - InsideMetals.com
  Home About Why Subscribe Subscribe Tutorials What's new FAQ Contact    
 

Disclaimer

The information published in InsideMetals.com has been collected largely from published financial reports, press releases, annual reports, quarterly reports, and applicable regulatory documents (Security & Exchange Commission filings), and is believed to be factual and reliable. However we make no guarantee as to the accuracy of the data. Neither Whitney & Whitney, Inc. nor InsideMetals.com give investment advice and every investor should make independent decisions. All information contained is provided for education and guidance on the financial performance of the listed precious metals mining companies that are contained within InsideMetals.com. Reliance on this data is exclusively at the users risk. The data is not intended to provide a complete treatment on any of the listed mining companies. In no event shall Whitney & Whitney, Inc., its employees, officers, or the authors of information provided herein, be liable for special, direct, indirect, or consequential damages, losses, charges, demands, or claims for lost profits or expenses of any nature or kind.

Every attempt has been made to ensure that the data contained is accurate at the time of compilation. However, neither Whitney & Whitney, Inc. nor any employee is responsible for any errors or omissions, or for the results that may be obtained from the use of this data. Inadvertent errors do occur and applicable laws, rules, and regulations often change and are subject to interpretation.

Neither Whitney & Whitney, Inc. nor InsideMetals.com are affiliated with any investment fund or brokerage house.

From time to time members of the staff of Whitney & Whitney, Inc. may own shares in the reported companies.

 

Join Our Free Newsletter
Email:
 
 
forgot password?
Username:
Password:
 



NYSE Gold Producers
AMEX Gold Producers
NSDQ Gold Producers
Copyright Insidemetals 2005 Privacy Policy Disclaimer  
Subscribe Now How to Use About Gold Stocks About the Reports