# How to Build a Bitcoin Payment Widget for Ghost Host a receive-only donation interface separately and embed it using an iframe in a Ghost HTML card if the hosting policy permits framing. Use a fixed HTTPS source, a descriptive title and a restrictive sandbox, granting only capabilities required by the widget. The JavaScript helper validates the configured destination; it is not the widget itself. Set frame-ancestors on the widget server to permit only your blog and avoid sharing secrets or trusting arbitrary postMessage events. Educational example; no live integration test. License: 0BSD.