A straigtforward PHP Example for using charges.
All the logic is hosted on SampleChargeRequest.php file.
How to run:
- Create an account at developer.intuit.com, create an app for Payment API.
- Go to OAuth playground: https://developer.intuit.com/v2/ui#/playground?appid={Your App ID} You can also go to OAuth playround from your app's dashboard.
- Choose scope as Payment, Complete the flow.
- Paste the access token to $accessToken variable, keep "Bearer ".
- Change the body.
- Run the script: PHP SampleChargeRequest.php
