From 65eb4b90be0e21c993ddb9e4e5d80f569ad9a953 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Oct 2025 21:20:03 +0000 Subject: [PATCH 1/3] Initial plan From 5a4438986a465180492ae82354600abf437a47f3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 5 Oct 2025 21:23:34 +0000 Subject: [PATCH 2/3] Add payment permission to iframe to fix Payment Request API violations Co-authored-by: falkorichter <50506+falkorichter@users.noreply.github.com> --- README.md | 2 +- docs/donate.html | 2 +- docs/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e4d1eb0..02ce946 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,6 @@ ## Donate Using `dialog` https://developer.mozilla.org/de/docs/Web/HTML/Reference/Elements/dialog -- [Donate Page (Direct iFrame)](donate.html) - Direct donation page with embedded iframe (may be blocked by browser security) +- [Donate Page (Direct iFrame)](donate.html) - Direct donation page with embedded iframe (includes payment permission for Apple Pay/Google Pay) - ![Dialog with iframe](screenshots/dialog_with_iframe_0.1.png) - [Donate Page (JavaScript Embed)](donate_with_script.html) - Direct donation page using betterplace.org's official JavaScript embed code diff --git a/docs/donate.html b/docs/donate.html index 09ced8b..75e1983 100644 --- a/docs/donate.html +++ b/docs/donate.html @@ -22,7 +22,7 @@ position: absolute; /* 👈 Take it out of normal flow */ z-index: 10; /* 👈 Ensure it is above the iframe */ " onclick="this.closest('dialog').close()">x - +