Skip to content

Commit

Permalink
Merge pull request #104 from crowdtainer/081223_2
Browse files Browse the repository at this point in the history
Improve README.md
  • Loading branch information
tfalencar authored Dec 8, 2023
2 parents 52de094 + 7516dc5 commit a917fe0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,12 @@ docker compose --env-file plugins/notifications/.env up --build -d mailer
```
Note: be careful to not expose the redis port to the internet (unless authenticated/encrypted). When docker compose is used, the redis port remains isolated and shared only between the required services.

## WooCommerce integration (invoice / order creation after successfull campaigns)
## WooCommerce (invoices/orders creation for successful campaigns)

This plugin helps with order creation and tracking workflow, by integrating with Wordpress' plugin WooCommerce. A reason to use WooCommerce is to take advantage of the existing open source ecosystem in E-commerce and avoid reimplementing existing functionality with regards to fulfillment, stock management, invoicing, tax, accounting, etc. The user doesn't need to see any web page from WooCommerce itself; This plugin simply connects to WooCommerce APIs to create orders on the system via REST calls.

This plugin checks for work in a redis queue (created by successful campaigns in the web app), checks its validity against blockchain state (to verify participation proof), and creates the respective orders in WooCommerce with the respective product selection (a.k.a. cart items). If referrals are enabled in the campaign, it also applies discount codes so that invoices are correctly generated.

This plugin helps with the "check out" workflow, by integrating with Wordpress' plugin WooCommerce. One reason to use WooCommerce is to take advantage of the existing open source ecosystem in E-commerce and avoid reimplementing existing functionality with regards to fulfillment, stock management, invoicing, tax, accounting, etc. It checks for work in a redis queue, checks its validity against blockchain state (to verify participation proof), and creates the respective orders in WooCommerce with the production selection (and if enabled, apply discount codes for projects with referral enabled).
Plugins for other e-commerce platforms can be easily created based on this plugin, by changing the REST api call with a new request format.

Please see all files under:
Expand Down

0 comments on commit a917fe0

Please sign in to comment.