In the sandbox you will need to create a new user for testing. This user must have a credit card associated with them, you can then use this credit card number and test user info when testing for credit card transactions. I usually just create a pre-configured user for this.
You should be able to test with a test user and this credit card info associated with them, let us know if you have any further issues with this.