0.0.1-alpha.0 • Published 4 years ago

react-apple-pay-button v0.0.1-alpha.0

Weekly downloads
82
License
MIT
Repository
github
Last release
4 years ago

react-apple-pay-button

An Apple Pay button for React, which tries its best to abide by the Human Interface Guidelines.

🚀 Getting Started

Using Yarn:

yarn add react-apple-pay-button

✍️ Example

import React, { useCallback } from "react";
import { ApplePayButton } from "react-apple-pay-button";

function App() {
  const onRequestApplePay = useCallback(() => /* TODO */ []);
  return (
    <ApplePayButton onClick={onRequestApplePay} theme="light">
      {"Subscribe with"}
    </ApplePayButton>
  );
}

export default App;

🚀 License

MIT