A magnifying glass held over a trail of footprints, one print enlarged under the lens
Trusted third parties2 min read

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

The PayPal hosted buttons tool 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 each week. 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.

Not switched on yet

The PayPal hosted buttons tool is checked and on the list, but it cannot be added yet: its script address carries your own PayPal client id, which bernard’s exact-address check cannot accept yet. 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 the PayPal hosted buttons tool?
Not yet: the PayPal hosted buttons tool is on bernard’s list but not switched on, because its script address carries your own PayPal client id, which bernard’s exact-address check cannot accept yet. When it is, your AI will write the exact tag bernard permits on a preview, and you approve it before it goes live.
Is the PayPal hosted buttons tool 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 each week. 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 that is fixed.
What do I need from the PayPal hosted buttons maker 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.

Next