I am selling digital products from my site and trying to do the following workflow:
Use gravity forms for "checkout", call a custom URL to obtain a license key, pass the license key, custom text, and credit card info to FreshBooks, and bill the card, and send the invoice via email (which would include the license key).
The freshbooks api looks like it has that functionality....
http://developers.freshbooks.com/billing/