Search by

omnitrade / woocommerce

GlitchArt

Omnitrade WooCommerce: a sale paid on the shop's checkout (orders created unpaid), the shop's orders and their payment state, refunds and webhooks, over the REST API v3.

1.x-dev 2026-10-01 17:46 UTC

This package is auto-updated.

Last update: 2026-10-02 01:58:29 UTC


README

WooCommerce for glitchr/omnitrade: a sale paid on the shop's own checkout (an order created unpaid, with its payment URL), the shop's orders and their payment state, refunds, the payment gateways switched on, and webhooks - the REST API v3.

omnitrade:
    gateways:
        woo:
            factory: woocommerce
            options:
                url: '%env(WOOCOMMERCE_URL)%'                       # https://shop.example
                consumer_key: '%env(WOOCOMMERCE_KEY)%'               # ck_...
                consumer_secret: '%env(WOOCOMMERCE_SECRET)%'         # cs_...
                webhook_secret: '%env(WOOCOMMERCE_WEBHOOK_SECRET)%'  # for notify()

purchase() creates a pending order and answers PENDING with its payment URL; the shop's own gateways take the money there, and fetch() or the order.updated webhook say when they did (processing/completed is PAID, failed REFUSED, cancelled CANCELLED). refund() refunds through the shop's gateway; fetchOrder() reads any order; paymentMethods() lists the gateways enabled.

Credentials: a REST API key with Read/Write (WooCommerce → Settings → Advanced → REST API) over HTTPS, and a webhook (same screen → Webhooks) for order.updated with a secret of your own.

License: LGPL-3.0-or-later.