diff --git a/public/images/subscription/stripe-logo.svg b/public/images/subscription/stripe-logo.svg deleted file mode 100644 index e1fd0e12..00000000 --- a/public/images/subscription/stripe-logo.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/src/app/_components/payment/__tests__/payment-method-selector.test.tsx b/src/app/_components/payment/__tests__/payment-method-selector.test.tsx index 0b9eef4d..b8218137 100644 --- a/src/app/_components/payment/__tests__/payment-method-selector.test.tsx +++ b/src/app/_components/payment/__tests__/payment-method-selector.test.tsx @@ -35,8 +35,6 @@ describe("PaymentMethodSelector", () => { expect(selectedButton).toContain("0_0_0_3px_rgba(217,47,127,0.18)"); expect(selectedButton).toContain("-translate-y-0.5"); expect(html).toContain("/images/subscription/gcash-logo.svg"); - expect(html).toContain("/images/subscription/stripe-logo.svg"); - expect(html).not.toContain(">Stripe"); }); it("disables both payment methods while payment is busy", () => { diff --git a/src/app/_components/payment/payment-method-selector.tsx b/src/app/_components/payment/payment-method-selector.tsx index 74adedba..5064446c 100644 --- a/src/app/_components/payment/payment-method-selector.tsx +++ b/src/app/_components/payment/payment-method-selector.tsx @@ -8,22 +8,15 @@ const PAYMENT_METHODS: readonly { channel: PayChannel; title: string; logoSrc?: string; - logoWidth?: number; - logoHeight?: number; }[] = [ { channel: "stripe", title: "Stripe", - logoSrc: "/images/subscription/stripe-logo.svg", - logoWidth: 360, - logoHeight: 150, }, { channel: "ezpay", title: "GCash", logoSrc: "/images/subscription/gcash-logo.svg", - logoWidth: 122, - logoHeight: 29, }, ]; @@ -92,13 +85,13 @@ export function PaymentMethodSelector({ aria-label={method.title} onClick={() => onChange(method.channel)} > - {method.logoSrc && method.logoWidth && method.logoHeight ? ( + {method.logoSrc ? ( ) : (