Skip to content

Small Sinatra app to handle locali-ge.ch woocommerce webhooks

License

Notifications You must be signed in to change notification settings

csa-admin-org/locali-ge.csa-admin

Repository files navigation

locali-ge.csa-admin.org

Tests

A small Sinatra app to handle locali-ge.ch WooCommerce webhooks and automatically create a new member in the CSA Admin organization.

The mapping of the WooCommerce products to the CSA Admin organization resources is handled in the config/mapping.yml file. The api_endpoint of the CSA Admin API must be set in the config/config.yml file for each organization.

Deployment

The WEBHOOK_SECRET environment variable must be set to the WooCommerce webhook secret.

For each organization, the <ORGANIZATION>_API_TOKEN environment variable must be set.

Testing

bundle install
bundle exec ruby test/*_test.rb

Author

Thibaud Guillaume-Gentil

About

Small Sinatra app to handle locali-ge.ch woocommerce webhooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published