You may test transactions in the sandbox environment. To do the same, generate test API keys and implement the same in your code. You can follow these simple steps to generate API keys.