Boost recurring donations this giving season with the upsell prompt!Learn How >>

Embedding a Donation page into a website

updated

With the Donations app, you are able to embed a donation page into a website or websites of your choosing using code available to you within the Soapbox administrator.

To access the embed code for a give Donation page:

Add the embed code into the site or sites of your choosing.

Understanding what portions of the Donate page will be displayed on the parent page

The Donation page will render only the main page content and not include the header or footer of the Soapbox site.

Altering the height of iframe for the embedded Donation page

By default, the iframe containing the embedded Donation page will fill 100% of the container in which it is placed on the parent page. If you wish to explicitly set the height of the iframe to a specific pixel height, you can do so by adding a DIV around the embed code provided like this:

<div id="embed-container" style="height:1000px">
<div id="sbx-widget-donate-form"></div>
<script src="https://myorg.secure.stagenonprofitsoapbox.com/donate/widget/1?form" crossorigin="anonymous"></script>
</div>

Accepting Apple Pay in an embedded Donation page

Donors using Safari 17 or later on a Mac, or iOS 17 or later on an iPhone or iPad, can give with Apple Pay in an embedded Donation page. For Apple Pay to appear:

The embed code from the Integration tab already gives the embedded page permission to use Apple Pay, so embed code you added earlier does not need to change. If you built your own iframe instead of using the embed code, add allow="payment" to it, for example <iframe src="..." allow="payment"></iframe>.

Donors using older versions of Safari will not see Apple Pay in an embedded Donation page, but can still give by card.

Merge fields on the confirmation page of an embedded Donation page

The confirmation page of an embedded Donation page shows merge fields, such as the donor's name and the donation amount, the same way as the Donation page on your Soapbox site. If a donor reopens the confirmation page more than 30 minutes after giving, the merge fields are blank. The confirmation email is not affected.

Have more questions? Submit a request
Article is closed for comments.