Log into your Clover Sandbox developer account and create an app with the following permissions:
- Merchant Read
- Orders Read
- Orders Write
- Payments Read
- Payments Write
- Process Credit Cards
Install the app to your test merchant and create an OAuth token.
git clone https://github.com/cloverhackathons/DeveloperPayAPI.git
Open DeveloperPayAPI/java in IntelliJ.
Select Main.java and edit the config variables to include your own test Merchant ID and the OAuth token you created.
Make sure project SDK, language level and JRE are set to Java 8 (because of javax.xml.bind.DatatypeConverter).
- Edit the variable
accessTokenwith your access token. Read the following to learn more: https://docs.clover.com/clover-platform/docs/using-oauth-20
- Make sure you've enabled read/write permissions for your app in Clover's developer dashboard. After enabling, uninstall and then re-install the app on your test merchant. Apps are only granted the permissions requested at the time of installation.