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

What's New


 


 

For the week of October 8th, 2007 the following Gold Producers have been added to the Gold Producer Index:

AMEX

Endeavour Silver Corp. (AMEX: EXK)
Crystallex International Corp. (AMEX: KRY)
Gammon Gold, Inc. (AMEX: GRS)

NASDAQ

DRDGOLD Ltd. (NasdaqCM: DROOY)

 

The following companies have been removed from our Gold Producer Index:

 

Reason: Rio Narcia Gold Mines Ltd. was acquired Lundin Mining on 8/20/07.
    

Reason: Meridian Gold, Inc. was acquired by Yamana Gold on 10/12/07.
 


 

NEW! - Tour of InsideMetals.com (MS PowerPoint required to view)

 


 

InsideMetals.com Gold & Mineral Exploration Shopping Mall

 

The Insidemetals.com Gold & Mineral Exploration Shopping Mall is now open, free of charge, to the general public and non-subscribers.

 

Check it out! See what you have been missing!

http://www.insidemetals.com/mall/

 


 

InsideMetals Newsletter (Free)

 

For those who haven't yet subscribed to our Free InsideMetals Newsletter, you can access our latest issue below on the web:

 

09/25/10 - Volume 5, Number 16

 

- Click here to subscribe to the Free InsideMetals Newsletter

- To access past issues, please visit our Newsletter Archive

 

InsideMetals uses which guarantees the permanent removal of your email address from the InsideMetals list, should you wish it. Note: Your privacy is important to us. In each email you receive, there will be a link to unsubscribe or change your areas of interest.

 


 

InsideMetals Special Reports (Premium Subscribers)

 

- InsideMetals Subscribers - click here to access the Special Reports Archive

 

- Not a Subscriber yet? - click here to get complete access to our Special Reports

 


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