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
- Load a fundraising page.
- PayPress JavaScript requests the campaign snapshot.
- The snapshot returns safe public campaign state.
- The page updates metrics, availability, and donation controls.
- 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.