Quickbooks PHP API Generating Invoices On Order Submission -


i have client wants take orders via online form, idea being order can submitted , stored in database via application while simultaneously generating invoice on submission in quickbooks.

how do in php when person entering in order not client client of client? seems quickbooks uses oauth tokens , javascript library generate them connect company app, i'm writing backend 1 company , want backend create invoices when saving order. how think this?

i'm not interested in having hit button says "connect quickbooks" not person filling order because again, person customer , doesn't need know internals of customer's invoicing system.

i want use accounting api generate invoices. there no way link backend 1 company directly in quickbooks sdk configuration , achieve this, or need use javascript library tokens. i'm unclear direction should going in , don't want waste time client-side library if don't need backend logic.

here's example code you're looking for:

along quick-start guide:

also see notes comments below -- you're on right track, you're misunderstanding how oauth works:

it seems quickbooks uses oauth tokens , javascript library generate them connect company app, i'm writing backend 1 company , want backend create invoices when saving order.

correct, intuit uses oauth, , little javascript thing kick off oauth process.

i'm not interested in having hit button says "connect quickbooks"

someone needs hit button... 1 person needs hit button once, ever, , never again.

the owner of company (e.g. boss) needs click button once, gives oauth creds (and realm id) you. once boss has done once, have creds use forever, of actual customers.

your customers (e.g. people checking out/placing orders) not click buttons, nor see or have idea @ you're using quickbooks.

just want use accounting api generate invoices.

cool, can totally that!

is there no way link backend 1 company directly in > quickbooks sdk configuration , achieve this, or need use javascript library tokens.

follow quick-start above. should take 15 minutes working oauth connection, , never need use client-side stuff ever again.

you need authenticate every 180 days btw.

if use reconnect script, need authenticate once, , can automatically renew tokens every 180 days, no user-interaction required.

well realm_id example, don't understand how relates ouath.

the realm id unique identifier particular quickbooks online company you're trying connect to. yes, need store it. if use our libs, done automatically.

i guess don't understand if i'm developing 1 client why can't realm_id them , keep using rather making them form of authentication?

again, have authenticate once. that's intuit's way of giving realm id , credentials need connect. once you've done once, never need again. takes of 30 seconds.

if give oauth creds without authentication, gigantic security hole. if read wikipedia article on oauth talks in depth this, , goals of oauth.

okay think it, have authenticate once every 180 days?

once every 180 days, unless use reconnect script, in case authenticate once , never ever have worry again.

so can store token , realm_id in database before expires , use that?

yes.

in way client can authenticate , scripts can generate invoices them when customers visit our website?

yes!


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -