Excited about FoxyCart's Hypermedia API - what a tremendous effort, congratulations!
I just hope I can use it correctly :-) In my opinion, HAPI doc needs a bit of work - specifically, on WHAT you can do with your FoxyCart Client.
Here's the situation I found myself in. I admit, I may have interpreted instructions incorrectly, but here it is...
So, I started here: https://wiki.foxycart.com/v/2.0/start
. I created server-side workflow to validate purchases, add items to cart with JSONP and send user to checkout page.
Next, I thought I'd work on webhook to parse transaction results: https://wiki.foxycart.com/v/2.0/api
And I saw the deprecation notice. My immediate thought was - great, I don't need to build the Transaction Webhook endpoint and won't have to deal with the nasty XML structures. I hoped I'd be able to somehow connect to my store and see occurred transactions and fetch the result in a nice JSON object.
But then, looking at HAPI cheat sheet or HAPI resources I do not immediately see the method of handing transaction results.
Some of my questions:
1. Can HAPI replace JSONP - can I use Foxy Client to work with orders on the backend?
2. Do I still need to use Transaction Webhook?
3. How does the deprecation of current API affect webhooks and whether they will all continue to work with XML format?
Would be great if you added a couple of HOW-TOs to the doc.
Once again, thanks a lot for your great work!