Octany. for/devs
§ 01 — Fundraising · Client portal

A portal where donors manage their giving.

The client portal (portal-v1) lets your donors sign in with BankID and see their gifts, change or cancel a monthly donation, switch payment method, download receipts and keep their details up to date. It's a widget like the fundraising embeds: put it on your own page, link to the hosted page, or frame the hosted page.

§ 01.8.1 What donors can do #

AreaWhat the signed-in donor can do
SubscriptionsSee monthly gifts and other subscriptions. Change the amount, cancel, resume a cancelled one before it ends, and switch payment method or update the card.
OrdersBrowse past gifts and purchases and download receipts as PDF.
ProfileView and edit contact details.
Events and formsSee event registrations and submitted forms.

Which of these show up depends on your account and the portal's settings. Without the full client portal on your Octany plan, the portal only lets donors manage the payment method on their subscriptions. Changing amounts and cancelling can each be turned off per portal. Only donation subscriptions can have their amount changed.

§ 01.8.2 Embed on your page #

This is the recommended option, and the one to use when you want to keep your own header, menu and footer around the portal. Copy the embed code from the portal in Octany admin. It has the same shape as every other fundraising embed:

<div class="octany-portal-widget"></div>
<script
  type="module"
  src="https://give.octany.com/portal-v1/loader.js?api=https://app.octany.com/widget/1234&widget=01HXXXXXXXXXXXXXXXXXXXXXXX"
></script>
ParameterRequiredDescription
apiYeshttps://app.octany.com/widget/{account}, where {account} is your account ID.
widgetYesThe portal's widget ID, 26 characters.
langNoTwo-letter language code, e.g. sv or en. Defaults to the portal's language.

This isn't an iframe. The portal renders straight into the container, inside a Shadow DOM, so your stylesheets don't reach into the portal and the portal's styles don't leak into your page. It fills the container's width.

On WordPress, the Octany plugin renders the same snippet with [octany type="portal-v1" account="1234" widget="01HXXXXXXXXXXXXXXXXXXXXXXX"] or the Octany widget block.

§ 01.8.3 Hosted page #

Every portal also has its own page on Octany. It's the preview link in Octany admin:

https://app.octany.com/widget/{account}/{widget}/portal

The page holds only the portal and fills the screen. Link to it from your site's menu if you don't want to embed anything.

Payment reminder emails When a subscription payment fails, Octany's reminder email links to the hosted page, not to the page where you embedded the portal. The link opens the portal straight on that subscription's payment method, without BankID. That session can only change the payment method on that one subscription. So style the portal (logo, colors, hero image) even if you only plan to embed it: donors will see the hosted page too.

§ 01.8.4 iframe #

You can frame the hosted page. Octany doesn't block framing, and the portal keeps sign-in in the page rather than in cookies, so it works even when the browser blocks third-party cookies.

<iframe
  src="https://app.octany.com/widget/1234/01HXXXXXXXXXXXXXXXXXXXXXXX/portal"
  title="My giving"
  style="display:block; width:100%; height:85vh; border:0"
></iframe>

Prefer embedding when you can: you get the same result without an iframe, and nothing to size.

§ 01.8.5 Keeping your header #

Both the embed and the iframe keep your own header, menu and footer around the portal. A few things about the portal's layout are worth planning for:

§ 01.8.6 Sign-in #

Donors sign in with BankID: by scanning a QR code, or by opening the BankID app on the same device. The portal signs them in as a contact that already exists in Octany. There's no sign-up, so a donor who has never given or been imported can't get in.

Contacts without a personnummer in Octany can't be matched by BankID. Turn on Allow email or SMS activation for contacts without personnummer to let them prove who they are with a code sent to their email or phone. They then confirm with BankID, which adds the personnummer to their contact. From then on they sign in with BankID like everyone else.

§ 01.8.7 Sessions #

After sign-in, the portal keeps a session token in the browser's sessionStorage on your page's domain, one per portal. No cookies are involved. In practice:

Because sign-in lives in your page's storage, it never carries over to your own site's login. The portal and your site don't share users.

§ 01.8.8 Settings #

Set these on the portal in Octany admin:

SettingWhat it does
Non-profit portalUse donation wording instead of purchase wording. On by default.
Hero imageImage across the top of the portal and the sign-in screen.
ColorsBackground, titles, tab background and text, active tab background and text.
Allow email or SMS activation for contacts without personnummerSee Sign-in.
Allow contacts to change subscription amountsShows the change-amount action on donation subscriptions.
Allow contacts to cancel subscriptionsShows the cancel action.
Website URLShows a "Back to {site}" button in the portal's header. Leave it empty to hide the button.
Logout URLWhere the window goes after logout. Leave it empty to stay on the sign-in screen. Use an https:// URL.

§ 01.8.9 Requirements #