'') $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    
 

Press Releases


11/06/08 - "InsideMetals.com" Adds Four Junior Gold Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

 

09/25/2008 - "InsideMetals.com" Adds Four Junior Silver Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

 

08/21/2008 - "InsideMetals.com" Adds Four Junior Gold Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

 

07/15/2008 - "InsideMetals.com" Adds Four Junior Gold Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

 

07/03/2008 - "InsideMetals.com" Adds Four More Coal Producers to Its Popular Gold & Mineral Stocks Shopping Mall

06/17/2008 - "InsideMetals.com" Adds Four Coal Producers to Its Popular Gold & Mineral Stocks Shopping Mall

05/20/2008 - "InsideMetals.com" Adds Four Junior Gold Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

05/08/2008 - "InsideMetals.com" Adds Four Potash Fertilizer Producers to Its Popular Gold & Mineral Stocks Shopping Mall

 

02/21/2008 - "InsideMetals.com" Adds Four Junior Platinum Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

 

02/14/2008 - "InsideMetals.com" Adds Stock Price Content to Its Mineral Producer Stocks and Its Junior Gold & Mineral Stocks Shopping Mall

 

01/24/2008 - "InsideMetals.com" Adds Four Junior Gold Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

 

01/17/2008 - "InsideMetals.com" Adds Four Junior Gold Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

 

01/10/2008 - "InsideMetals.com" Adds Four Junior Uranium Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

 

01/03/2008 - 'InsideMetals.com' Adds Four Junior Gold Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

12/20/2007 - 'InsideMetals.com' Adds Four Junior Mineral Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

12/11/2007 - 'InsideMetals.com' Expands Website Content by Adding Mineral Producers

12/04/2007 - 'InsideMetals.com' Adds Four Junior Gold Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

 

11/27/2007 - 'InsideMetals.com' Adds Four Junior Gold Stocks to Its Popular Junior Gold & Mineral Stocks Shopping Mall

 

10/23/2007 - 'InsideMetals.com' Expands Its Gold Producer Stocks Index

 

08/16/2007 - 'InsideMetals.com' Adds 10 Gold Stocks, A Nickel and A Uranium Stock, to Its Popular Junior Gold & Mineral Stocks Shopping Mall

 

06/21/2007 - 'InsideMetals.com' Expands WORLD VIEW of Gold Stocks, Adds 12 Junior Gold Companies to Its Popular Gold & Mineral Exploration Shopping Mall

 

05/08/2007 - 'InsideMetals.com' Adds 12 Junior Gold Companies to Its Popular Gold & Mineral Exploration Shopping Mall

 

04/05/2007 - 'InsideMetals.com' Adds 13 Junior Gold Companies to Its Popular Gold & Mineral Exploration Shopping Mall


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