What would happen if setTestMode is used in live environment?

I just want an understanding of what setTestMode would do when used in a live environment?

Would it allow me to test using the test credit card numbers? Would all transactions fail automatically if setTestMode is true? etc...

  • If setTestMode is true and you don't specify a "test" store ID and API token, all transactions will fail because the test environment will not recognize the production (live) store ID and API token.