=== Octany ===
Contributors: octany
Tags: donations, fundraising, swish, octany
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed Octany widgets in your posts and pages.

== Description ==

Adds Octany donation flows, 1-click Swish, donation goals, activity feeds, Pulse, greetings, client portals and forms to WordPress. Editors do not need permission to add scripts: the plugin outputs the widget code itself, from Octany's own servers only.

= Block =

Add the "Octany widget" block, paste the embed code from the widget in Octany and click Embed. Type, account, widget and the optional settings can be changed in the block settings.

= Shortcode =

For the classic editor, page builders, or anywhere shortcodes work:

`[octany type="donate-v1" account="1234" widget="01HXXXXXXXXXXXXXXXXXXXXXXX"]`

* `type` (required): `donate-v1`, `swish-v1`, `target-v1`, `feed-v1`, `pulse-v1`, `greeting-v1`, `portal-v1` or `form-v1`.
* `account` (required): your Octany account ID.
* `widget` (required): the widget ID (for forms, the form ID).
* `url`: the Octany app to use. Defaults to `https://app.octany.com`.
* `lang`: two-letter language code, for example `sv` or `en`.
* `reference_id`, `reference_name`: stored on orders from the widget.

Nothing is shown when a required value is missing or invalid.

= Developers =

* `octany_domains` filters the domains `url` may point at (default `octany.com` and `localhost`, including subdomains).
* `octany_loader_origin` filters where widget loaders are served from (default: the `give.` host next to `url`, e.g. `https://give.octany.com`).

== Changelog ==

= 0.1.0 =
* First version: block and shortcode for every Octany widget type.
