Skip to content

Instantly share code, notes, and snippets.

View gclark-eightfold's full-sized avatar

Grant Clark gclark-eightfold

View GitHub Profile
@dillionverma
dillionverma / ApplePayButton.tsx
Last active July 25, 2024 05:57
Apple Pay Button - How to make an Apple Pay button using React + NextJS + Typescript + Tailwindcss
// components/ApplePayButton.tsx
import { buttonVariants } from "@/components/ui/button";
import { cn, hasApplePay } from "@/lib/utils";
import { Icons } from "@/components/icons";
import Link from "next/link";
export const ApplePayButton = () =>
hasApplePay() && (
<Link
href="https://buy.stripe.com/00g7vD4Vu8zQb8k5kl?prefilled_promo_code=EARLYBIRD"