Michael
Michael

Reputation: 388

Credit card processing with Quickbooks Payments API

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

Answers (1)

Keith Palmer Jr.
Keith Palmer Jr.

Reputation: 28032

Here's a library that does that (full disclaimer - I'm the author):

Examples specific to payment processing:

A potential gotcha:

  • I haven't implemented OAuth 2 yet (Intuit is in the process of migrating from OAuth 1 to OAuth 2) so if you're a new app, you might have to wait until I implement that (or you could do that and make a pull request!)

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

Related Questions