src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/Samples/SimpleCheckoutExampleCLI.php
private function _getPreTaxAndShippingOrderAmountFromStdIn() 
    {
        print PHP_EOL . "-------------------------------------------" . PHP_EOL;
        print "Enter the pre tax amount to charge for the order" . 
              "as a number (to 2 decimal places): ";
        do {
            $orderAmount = trim(fgets(STDIN));
        } while (!is_numeric($orderAmount));

        return $orderAmount;
    }
private function _getPreTaxAndShippingOrderAmountFromStdIn() 
    {
        print PHP_EOL . "-------------------------------------------" . PHP_EOL;
        print "Enter the pre tax amount to charge for the order" . 
              "as a number (to 2 decimal places): ";
        do {
            $orderAmount = trim(fgets(STDIN));
        } while (!is_numeric($orderAmount));

        return $orderAmount;
    }
private function _getPreTaxAndShippingOrderAmountFromStdIn ( ) { print PHP_EOL . "-------------------------------------------" . PHP_EOL ; print "Enter the pre tax amount to charge for the order" . "as a number (to 2 decimal places): " ; do { $ orderAmount = trim ( fgets ( STDIN ) ) ; } while ( ! is_numeric ( $ orderAmount ) ) ; return $ orderAmount ; }
Capture the pre tax order amount from standard input,
making sure that it is a numeric string

@return string total amount of the order before tax and shipping charges
Capture the pre tax order amount from standard input making sure that it is a numeric string