cielo-woocommerce
cielo-woocommerce copied to clipboard
Implements API 3.0
Like i commented in a topic in another post https://wordpress.org/support/topic/novo-e-commerce-api-3-0-2/#post-8873798.
Changes to API 3.0 and function to able to capture the sale in Admin Order Page.
I a developer from desktop and i'm learning programming for web.
Sorry for some error of standards of programming, comments are welcome.
Best regards.
Thanks for the Pull Request, but as I said before, we can't use Cielo's SDK and Namespaces, since we should support users from using PHP 5.2 and 5.3.
I'll make some changes and create a file like class-wc-cielo-json.php in /includes.
@sandermendes let me check it first, because maybe if the amount of changes required, maybe it's more easy start a new plugin for it, since it's confuse enough for the users today.
I try to let more compatible has possible, but some changes i couldn't do it because my experience using the framework is very low, but some changes i wanted to hide when user select determined API in General Settings of Plugin, what i "try to" implement in this work.
@sandermendes is you fork working in a production environment?
yes, i have made another changes after the last pull, with some fixes and improvements.
I tested on this implementation today and returned those errors https://gist.github.com/rafaelbantu/b901d6ff685bf4caa371b749d50d8c44 (in php 5.6 and 7.0)