I am a very new to QuickBooks. I have created a trial account in Quick Books and I want to add customers, create invoices or similar sort of things to my account. I have downloaded the php SDK from github. Now I have no Idea how to start, from where to start to add the customer to my account after the customer make the order from my website. Can anyone help me with some detail documentation or some examples so that I can move forward. I have no knowledge about the web app connector. I am totally new. Thanks..
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
From the SDK,use example_ipp_ids_6.php for adding customers.
Here is the link to the full code on GitHub:
And a quick-start guide:
QuickBooks ONLINE quick-start with PHP
QuickBooks for WINDOWS quick-start with PHP
example_ipp_ids_6.php
Configure your keys and username in example_ipp_config.php
This is going to be a two-part answer, because you didn't specify if you're using QuickBooks ONLINE, or QuickBooks for WINDOWS.
The process will be DIFFERENT depending on which you're using, so pay attention to the bold headers below:
For QuickBooks ONLINE:
If you're using the open source QuickBooks PHP DevKit from GitHub, then the best place to start is the QuickBooks Online with PHP quick-start guide.
The very first thing you'll have to do is register your app with Intuit. When you do this, Intuit will give you these variables:
You will substitute these variables into the config.php file that is included in the example. You'll also update these values to point to your app:
Beyond that, you can leave all other variables in config.php at their defaults.
If you then visit the index.php file, it will prompt you to connect to QuickBooks. You can connect, and then visit the example files. Here are some examples of adding customers/orders to QuickBooks Online:
The code ends up looking something like:
To implement additional functionality, you'll find other examples included in the code.
The objects/methods available also mirror Intuit's documentation so you'll want to look at that.
For QuickBooks for WINDOWS:
For QuickBooks for Windows, you'll use the Web Connector. Again, start with the open source QuickBooks PHP DevKit from GitHub. Use the QuickBooks for Windows + PHP quick-start guide instead.
That will walk you through setting up a simple Web Connector service which adds test customers to QuickBooks.
Basically you'll create a .QWC file which you'll load into the QuickBooks Web Connector (Start > All Programs > QuickBooks > Web Connector). That .QWC file will point to a PHP script which negotiates the connection between QuickBooks and PHP. All you have to do in that example script is swap this variable:
For each new piece of functionality you want to add, you'll end up writing a new request and response function, as detailed in the QuickBooks Web Connector + PHP docs.
Your code will end up looking something like:
You can find additional qbXML reference using the QuickBooks OSR.
We also provide a wiki with lots of example qbXML requests that you can use.