You may have used an error code. This feature is present only in test accounts to make implementing payments easier. If the amount you've set is an error code then this error is returned instead of a sale confirmation.
If the amount happens to be an error code number, the proper error is returned instead of the sale confirmation. This works only for test accounts; it simply makes it easier to implement payments.