Fundraising REST Hydration

REST hydration means the fundraising page loads basic markup first, then PayPress requests current campaign state and updates the page for visitors.

Overview

REST hydration means the fundraising page loads basic markup first, then PayPress requests current campaign state and updates the page for visitors.

Requirements

  • Fundraising or Donation plan using current PayPress hydration.
  • Public REST endpoint reachable.
  • JavaScript enabled for the hydrated experience.

Steps

  1. Load a fundraising page.
  2. PayPress JavaScript requests the campaign snapshot.
  3. The snapshot returns safe public campaign state.
  4. The page updates metrics, availability, and donation controls.
  5. Checkout validation still happens server-side when the donor continues.

Expected Result

Visitors see fresh campaign state even if the original page HTML came from cache.

Important Notes

The public snapshot does not expose donor personal data or raw order details. It only exposes the campaign state needed to render the donation experience.

Troubleshooting

If hydration fails, donation controls may remain disabled or show a refresh message. Check REST access, security plugins, CDN rules, and JavaScript errors.

Related Articles