What is the purpose of Woocommerce Rest Api wrapper - wordpress

Please help understanding what's the purpose of woocommerce rest api wrapper.
Since we can access the Woocommerce Rest Api directly by calling endpoints from front end framework like reat/angular, what's the purpose for different Woocommerce Rest Api wrapper like for python, node.js ,php?

The purpose is providing, supported way (by woocommerce team), for servers/apps on those languages to interact with the woocommerce store.
Examples:
Aliexpress web scraper in python to collect the latest products and publish them to your woocommerce store.
Node.js bitcoin client to track bitcoin blockchain for payments received on store address and update orders accordingly.
Integrate your POS in Java to the woocommerce store.
I hope this explains a little bit.
;-)

Related

Send API after payment completed WooCommerce

I have an e-commerce on Wordpress where I put my products for sale through WooCommerce and a demand arose for an advantage club where, after payment was made, it would send data to an API to create an account on a platform and when is no longer paid to be deactivated by the same API. How can I do this? Is there any way?
I looked for documentation on the internet but I couldn't find much.
You can use, a hook that runs when an ordered is marked as completed:
woocommerce_order_status_completed
if that doesnt work for you, you need to check the payment gateway provider, to see what hooks they offer

How do I make certain endpoints of the woocommerce rest api authless?

The Woocommerce rest API requires authentication through a consumer key and a consumer secret to access any of its endpoints. I'm currently building a store frontend using Nuxt js and Vue and I really want to use the Woocoomerce API as a backend restful API to power my store - (get products, categories and the like).
Unfortunately I can't simply pass the consumer key and secret through my frontend to access woocommerce as it will give the frontend client full control over woocommerce so anyone who opens devtools and checks the secret and key can call wocommerce on sensitive endpoints I didn't intend it for.
There is a plugin called Public Woo API solves some of this problem but doesn't work for all endpoint I need (most expecially order). The only obvious solution I can think of is a way to remove authentication for some endpoints.
How do I even do that? I don't even know where to begin. Thanks.

Add user on UrBackup server after order on Woocommerce site

I have wordpress site with woocommerce shop and I’m selling among others UrBackup client accounts on my server.
Do you have any idea how to automatically add UrBackup user after order in woocommerce?
Or maybe easier will be create shop based on different engine?
Any advice, tips? :)
After poking around a bit, it looks like UrBackup has an API you can use, that most likely has a 'create account' endpoint. I didn't see it immediately in their not-so-great documentation, but you'd think it'd HAVE to be there somewhere! There's also a PHP API kit you could integrate into your WordPress site here:
https://bitbucket.org/opensaucesystemsdevelopment/urbackup-api.git
So, you could load in this class, and after a WooCommerce order is placed, call the API endpoint to create a user. To do this with WooCommerce, you'd need to create a function on the "woocommerce_order_status_completed" hook.
http://hookr.io/actions/woocommerce_order_status_completed/
This would let you run any custom code you'd like after an order's payment has completed. Thus, you could check an order for if it contains the UrBackup product, and if so call the UrBackup API to create an account based on the current user's data.
Should work!

How can I make an asp.net website which uses entity framework into a shopping cart which can integrate with a payment gateway?

I am working on this website: http://wolves.phiresky.com/
It is an ASP.NET webpage using entity framework.
How can I make this a shopping cart?
How can I make this a shopping cart which can integrate with PayFast.co.za Payment Gateway?
The way that most developers create a shopping cart, including myself, is to create a object, often called cart, and then place that cart object into the visitor's session. This way the cart is accessible via the session object each page request. Integrating with a payment gateway is a whole other matter. To do that you will need to review the api documentation from the payment gateway company and then call the payment api's as appropriate.
The easiest to get started with a payment gateway is to try out Paypal, they offer test accounts and there is plenty .Net documentation to get you started. So using that you can run a test and see how online payments can be integrated. Also i see your prices are in ZAR, there is a couple of SA based payment gateway companies that you can easily integrate with, just run a google on SA payment gateway companies.

Woo commerce and quickbooks online plus integration

My company uses woo commerce on a wordpress platform to manage our online orders and is going to use quickbooks online plus for accounting. I'm looking for an integration solution between woo commerce and quickbooks online plus to post the online order automatically to quickbooks online plus when the order has been processed in woo commerce. So far I had no luck at all. We purchased a plugin from 60extensions only to realise it's for quickbooks desktop version, not online version. I have searched everywhere and asked the quickbooks online support but no luck!
Does anyone know a solution for this? Even a different shopping cart that can be integrated to quickbooks online?
Thanks!
Ashley
You can build this integration using QB V3 REST APIs.
You must have OAuth tokens to connect with your QB account data through REST endpoint. For that you need to have your customer(app's end user) go through the 3 legged OAuth flow. To generate access token and access secret corresponding to a QBO account, user's intervention is a must.
But once you have those tokens, you can store it in your program and use the same in all future communications between your app and QB account data.
To start development using QB API, you need to create an IA apps in Intuit's appcenter.
https://developer.intuit.com/docs/0025_quickbooksapi/0010_getting_started/0010_signup
From the above link you will get - apptoken, consumer key and consumer Secret. You can use the above 3 keys in IPPOAuthPlayground(PFB link) to get the access token and access secret corresponding to your QB Online account.
https://appcenter.intuit.com/Playground/OAuth
Using the above tokens, you can call any REST endpoints against your QB Online account. For development purpose, you can use IPP provided devkit.
https://developer.intuit.com/docs/0025_quickbooksapi/0055_devkits
If you just want to test this endpoints against your company then you can use APIExplorer tool as well.
https://developer.intuit.com/apiexplorer?apiname=V3QBO
You can have a look at IPP's marketing site - http://apps.intuit.com/ to see if you get any suitable plugin/saas app for this use case.
Thanks

Resources