you would use the payments gateways testing servers to process test transaction. How this is done depends on the gateway that is used.
With Paypal, you can sign up for sand box api credentials, then set the Use Sand Box setting in the server behavior that processes transactions. For Authorize.net, there is a test request setting that sends a test transaction.