The easiest solution is to create a $0.01 product and just go through and make the purchase.
The other option is to go sign up for a sandbox account and then get special sandbox credentials and update your code to use sandbox and then test with that. Then change it back to live after. However you would probably still want to create a $0.01 product to test that you switched back to live mode properly and that everything still works properly.
I'd suggest just skipping the sandbox step. You can do 100 test transactions at $0.01 each and it will only cost a dollar and the time you would take setting up a sandbox account and switching over credentials is worth more than that.