Reputation: 388
I've been trying for several days to find PHP sample code or a PHP-based SDK for Quickbooks Payments API to integrate credit card processing into an e-commerce site to no avail.
I have found the Quickbooks Online API PHP SDK but it doesn't seem to handle the raw credit card processing I need, only a way to log general payments into Quickbooks Online.
Does anyone have an example of authentication, token generation, and subsequent credit card processing using PHP for Quickbooks Payments API?
Upvotes: 1
Views: 1340
Reputation: 28032
Here's a library that does that (full disclaimer - I'm the author):
Examples specific to payment processing:
A potential gotcha:
It's standard OAuth 2, there's nothing fancy about it. So you should really be able to grab any PHP OAuth 2 lib and implement this yourself as well. There are tons of OAuth 2 tutorials out there.
Upvotes: 2