fix(thank-you): serve GiroCode as signed PNG URL instead of data URL

This commit is contained in:
Gerhard Scheikl
2026-05-09 21:14:47 +02:00
parent f59c981ff4
commit 3fb8600402
5 changed files with 141 additions and 12 deletions
@@ -16,7 +16,7 @@ function resolveAppUrl(shopify: any): string {
interface PaymentInstructions {
language: "de" | "en";
heading: string;
giroCodeDataUrl: string;
giroCodeUrl: string;
recipient: string;
bankName: string;
iban: string;
@@ -103,7 +103,7 @@ function Extension() {
<s-section heading={data.heading}>
<s-paragraph>{data.instructions}</s-paragraph>
<s-stack direction="inline" gap="base" align-items="start">
<s-image src={data.giroCodeDataUrl} alt="GiroCode" inline-size="200px" />
<s-image src={data.giroCodeUrl} alt="GiroCode" inline-size="200px" />
<s-stack direction="block" gap="small-200">
<s-text>{data.labels.recipient}: {data.recipient}</s-text>
{data.bankName ? (