{"id":8825,"date":"2026-10-20T09:33:00","date_gmt":"2026-10-20T07:33:00","guid":{"rendered":"https:\/\/www.1pay.ch\/docs\/embed-payment-page\/"},"modified":"2026-11-06T09:08:56","modified_gmt":"2026-11-06T08:08:56","password":"","slug":"embed-payment-page","status":"publish","type":"docs","link":"https:\/\/www.1pay.ch\/en\/docs\/embed-payment-page\/","title":{"rendered":"Embedding a payment page in your website"},"content":{"rendered":"<p>A <a href=\"https:\/\/www.1pay.ch\/en\/docs\/pages\/\">Page<\/a> or a <a href=\"https:\/\/www.1pay.ch\/en\/docs\/donation\/\">Donation<\/a> campaign can be placed in your website, so the customer pays without looking elsewhere. No programming is needed: you copy a piece of code and paste it.<\/p>\n<h2>Where to find the code<\/h2>\n<ol>\n<li>Open <strong>Pages &gt; Overview<\/strong> (or <strong>Donation<\/strong>) and click the page you want to embed.<\/li>\n<li>At the top, click the option to embed in a website.<\/li>\n<li>On the left you choose the settings; on the right you see a live preview.<\/li>\n<li>Copy the code and paste it into your website where you want the payment to appear. In WordPress use a \u00abCustom HTML\u00bb block.<\/li>\n<\/ol>\n<h2>Three ways to embed it<\/h2>\n<h3>Button<\/h3>\n<p>A button with the text you want (\u00abPay\u00bb, \u00abDonate\u00bb or your own), in the language you choose and in your website&#8217;s style. On clicking, a window opens over the page or the customer moves to the payment page.<\/p>\n<h3>Link<\/h3>\n<p>A simple text link, with the same options as the button.<\/p>\n<h3>iFrame<\/h3>\n<p>The payment page appears inside your website, like a window within a window. Note two limits:<\/p>\n<ul>\n<li>PostFinance Pay and Coinbase do not appear inside an iFrame. To show them, add <code>breakIframe=1<\/code> to the iFrame address: when paying, the customer leaves the iFrame and pays normally;<\/li>\n<li>Apple Pay cannot be shown inside an iFrame.<\/li>\n<\/ul>\n<p>If you want to offer all methods without any worry, choose the button or the link.<\/p>\n<h2>Pre-filled amounts<\/h2>\n<p>Here too you can use <a href=\"https:\/\/www.1pay.ch\/en\/docs\/url-parameters-placeholders\/\">URL parameters<\/a>, for example to suggest a starting amount.<\/p>\n<h2>Redirect after payment<\/h2>\n<p>If the page is embedded as a button or iFrame, the redirect to your own thank-you page does not work. In that case, use the thank-you message of the page itself.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Page or a Donation campaign can be placed in your website, so the customer pays without looking elsewhere. No programming is needed: you copy a piece of code and paste it. Where to find the code Open Pages &gt; Overview (or Donation) and click the page you want to embed. At the top, click [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"doc_category":[204],"doc_tag":[],"class_list":["post-8825","docs","type-docs","status-publish","hentry","doc_category-integrations"],"acf":[],"year_month":"2026-11","word_count":276,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"1pay.ch","author_nicename":"1pay_admin","author_url":"https:\/\/www.1pay.ch\/en\/author\/1pay_admin\/"},"doc_category_info":[{"term_name":"Integrations","term_url":"https:\/\/www.1pay.ch\/en\/docs-category\/integrations\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/docs\/8825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/comments?post=8825"}],"version-history":[{"count":5,"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/docs\/8825\/revisions"}],"predecessor-version":[{"id":9669,"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/docs\/8825\/revisions\/9669"}],"wp:attachment":[{"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/media?parent=8825"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/doc_category?post=8825"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.1pay.ch\/en\/wp-json\/wp\/v2\/doc_tag?post=8825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}