The zero-effort payment button — a thin skin over usePay(). Design systems that bring their own button skip this component entirely:
const { pay, paying } = usePay({ onServerCompletion }); <MyButton loading={paying} onClick={async () => onResult(await pay())} />
The zero-effort payment button — a thin skin over usePay(). Design systems that bring their own button skip this component entirely:
const { pay, paying } = usePay({ onServerCompletion }); <MyButton loading={paying} onClick={async () => onResult(await pay())} />