You may test transactions in test mode. 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.