=== WC REST Payment === Contributors: jack50n9, sk8tech Donate link: https://sk8.tech/donate?utm_source=plugin&utm_medium=forum&utm_campaign=wc-rest-payment Tags: wc, woocommerce, wc payment, woocommerce payment, rest payment, payment api, payment rest api, json, stripe, stripe payment Requires at least: 4.7.0 Tested up to: 5.1 Requires PHP: 5.2.4 Stable tag: trunk License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html WC REST Payment adds in the missing REST API endpoint for **processing payment** in `WooCommerce`. == Description == If you are a front end developer, looking to develop an app/web with WordPress+WooCommerce as your backend using REST API. You will find that [WooCommerce docs does](http://woocommerce.github.io/woocommerce-rest-api-docs/) not provide the **process payment** endpoint. WC REST Payment adds in the missing REST API endpoint for **process payment** in `WooCommerce`. **IMPORTANT NOTICE:** After payment is processed successfully, the `status` of `order` will be automatically changed to **Completed**. If you with to the status to be set to status other than **Complete** after successful payment process, please submit a pull request. **Update NOTICE:** The old `wc/v2/payment` REST API Endpoint is beding deprecated, and will be removed in v2.0. **Please update to the new REST API Endpoints ASAP.** = Usage = == To process payment via Stripe == Send a `POST` request to ` yourdomain.com/wp-json/wc/v2/payment/stripe ` With the following JSON body ` { "order_id": "7843", // Exisiting Order's ID "stripe_token":"tok_mastercard" } ` A list of available testing tokens for `stripe_token` in Test Mode can be found at [Stripe Testing Page](https://stripe.com/docs/testing). See Screenshot below for Sample Request. == To process payment via PayPal Express == Send a `POST` request to ` yourdomain.com/wp-json/wc/v2/payment/paypal-express ` With the following JSON body ` { "order_id": "7843", // Exisiting Order's ID "stripe_token":"ppec_token" } ` An integration guide for testing can be found at [Test your integration ](https://developer.paypal.com/docs/classic/express-checkout/ec_test_your_integration/). See Screenshot below for Sample Request. = Technical Support = **SK8Tech - Customer Success Specialist** offers **Technical Support** to configure or install ***WP REST User***. = Our Services = * [SK8Tech Sydney Web Design](https://sk8.tech/web-design/?utm_source=plugin&utm_medium=forum&utm_campaign=wc-rest-payment) * [SK8Tech Enterprise Email Hosting](https://sk8.tech/services/enterprise/email-hosting/?utm_source=plugin&utm_medium=forum&utm_campaign=wc-rest-payment) * [SK8Tech Emergency IT Support](https://sk8.tech/services/enterprise/it-support/emergency-support/?utm_source=plugin&utm_medium=forum&utm_campaign=wc-rest-payment) * [SK8Tech WeChat Advertising](https://sk8.tech/services/wechat/?utm_source=plugin&utm_medium=forum&utm_campaign=wc-rest-payment) == Installation == 1. Upload `wc-rest-payment` folder to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress == Frequently Asked Questions == = Do you have a demo? = Not yet, but we're buidling one as fast as we can. If you need assistance, feel free to email us at wc-rest-payment@sk8.tech. = What version of WordPress is required? = For security reasons, We always recommend you use the latest version of WordPress. For native REST API support, we recommend you use WordPress 4.7+. For WordPress version lower than 4.7, you will need to install [WordPress REST API (Version 2)](https://wordpress.org/plugins/rest-api/). = What version of WooCommerce is required? = WooCommerce v2.2+ = What payment gateways are supported? = The supported payment gateways are listed below: * [PayPal Express Checkout](https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/). * [Stripe](https://woocommerce.com/products/stripe/). * More coming soon = There's a bug, what do I do? = Please email us at wc-rest-payment@sk8.tech. == Screenshots == 1. An sample REST API POST request to process payment using [WC REST Payment](https://wordpress.org/plugins/wc-rest-payment/). == Changelog == = 1.3.0 = * Added Dependency Check * Improve Error Message * Added API Endpoints. * Compatible & Safe to Update * Updated 'process_payment' code to latest * For Dev: Please start updating to new API Endpoint = 1.2.0 = * Safe to Update * Bug Fixes * Added Plugin Analytics = 1.1.0 = * Added REST API endpoint for [PayPal Express Checkout](https://woocommerce.com/products/woocommerce-gateway-paypal-express-checkout/) Payment Gateway. * Restructured plugin directory for future development. = 1.0.0 = * Initial Release. * REST API endpoint for [Stripe](https://woocommerce.com/products/stripe/) Payment Gateway. == Upgrade Notice == Nothing to worry! Install away! == Contact Us == Based in Sydney, [SK8Tech](https://sk8.tech?utm_source=plugin&utm_medium=forum&utm_campaign=wc-rest-payment) is a innovative company providing IT services to SMEs, including [Web Design](https://sk8.tech/web-design?utm_source=plugin&utm_medium=forum&utm_campaign=wc-rest-payment), App Development and more.