Embed PayPal hosted buttons on my site
A PayPal hosted button lets a visitor pay you through PayPal without leaving the page. You build the button in your PayPal account and your AI drops it where you want it.
The prompt
“Tell me when PayPal hosted buttons is available on my site, and what I need to set up first.”
Signed in, Get my prompt fills in your site for you. Otherwise press Copy and fill in the [bracketed] parts. First time? Connect your AI to bernard once: Use your own AI (opens in a new tab).
Ask your AI
Tell me when PayPal hosted buttons is available on my site, and what I need to set up first.
What you need first
Your PayPal client id and the hosted button id, both from your PayPal dashboard.
What bernard checks
PayPal hosted buttons is on bernard’s permitted list. Someone read the maker’s own instructions (https://developer.paypal.com/guides/low-code-buy-button) on 2026-09-14 and decided it was safe to run on a customer’s site: The whole payment lives in PayPal’s iframe; the page passes only a button id. The SDK src carries a per-merchant client-id query parameter, which the byte-exact vendor matcher cannot express yet (see PRD 191 §10). Your site loads it from the maker’s own address. PayPal hosted buttons comes from the maker’s own address, always at whatever version they currently publish, so there is no pinned version here for bernard to check overnight. Keeping it current is the maker’s job. What bernard controls is the address: nothing else may be loaded in its place.
Once it is switched on, your AI will write the exact tag bernard permits, on a private preview, and you will approve it before anything goes live.
People search for this as: paypal, buy button, take payment, checkout, donate.
Waiting on consent support
PayPal hosted buttons sets cookies or sends information about your visitors to another company, so on a site with a cookie banner it has to wait for each visitor to say yes. bernard’s consent system does not yet have the category it needs, so the library is checked and on the list but waiting on consent support rather than switched on. Ask your AI to tell you when it is ready, and it will.
For the full list of libraries, what is waiting, and how to ask for one that is not there, see Embed a calendar, a diagram, a chart or another tool on my site.
Questions people ask
- Do I need to write any code to use PayPal hosted buttons?
- Not yet: PayPal hosted buttons is on bernard’s list but not switched on until bernard’s cookie-consent system can hold it. When it is, your AI will write the exact tag bernard permits on a preview, and you approve it before it goes live.
- Is PayPal hosted buttons safe on my site?
- bernard admits it only from its own published address, with its settings written as plain data rather than code. PayPal hosted buttons comes from the maker’s own address, always at whatever version they currently publish, so there is no pinned version here for bernard to check overnight. Keeping it current is the maker’s job. What bernard controls is the address: nothing else may be loaded in its place. It stays off until bernard’s cookie-consent system can hold it.
- What do I need from PayPal hosted buttons first?
- Your PayPal client id and the hosted button id, both from your PayPal dashboard.
- Can I change it later?
- Yes. Say what you want different and your AI redoes it on a preview for you to approve. Nothing about it is baked in.