LogoLogo
  • Introduction
    • 🏁What is PIP?
  • Product Guide
    • πŸ’§Social Pay
    • 🎭PIP.ME
    • πŸ”—Payment Links
    • πŸ›οΈCheckout
      • Setting your Store
      • Dashboard (For Merchants)
      • Start Selling
      • Payments
      • Store Policy
    • πŸ”·Pay Button
      • HTML
      • React
      • Javascript
    • πŸ“ƒInvoice
  • Tokenomics
    • πŸ…ΏοΈPIP Token
    • πŸͺ™Reward Farming
    • ↔️PIP Token - ERC20 Bridge Guide
  • Additional Guides
    • ❔Frequently Asked Questions
    • πŸ’ΈHow to Install Wallets
    • ⬆️Update Your Extension
  • Announcements
    • πŸ”΅PIP Version 2.1 - Base Network Integration
    • πŸ”΄PIP Version 2.0 - Optimism Network & Worldcoin
    • ❀️PIP Version 1.9 - Avalanche Network & Coinbase Wallet
    • πŸ“„New Product: PIP invoice
    • πŸ–€PIP Version 1.8 - Ethereum Integration
    • πŸ’œPIP Version 1.7 - Polygon Integration
    • 🦊PIP Version 1.6 - MetaMask and Github Integration + New Listings
    • πŸͺ™BAB Exclusive PIP Reward Event
    • πŸ”ΆPIP.ME 2.0 Now Live
    • πŸ¦„PIP Version 1.5 - BNB Chain Integration
    • 4️⃣PIP Version 1.4 & NFT Support Now Live
    • 3️⃣PIP Version 1.3 & PIP.ME Now Live
    • 2️⃣PIP Version 1.2 & Discord Support
    • 1️⃣PIP Version 1.1 & Reward Farming. Now Live
    • πŸ’ŽPIP Token & Extension App Launched
  • Resources
    • Getpip.com (Website)
    • Twitter
    • Discord
    • Telegram
Powered by GitBook
On this page
  1. Product Guide
  2. Pay Button

React

PreviousHTMLNextJavascript

Last updated 2 years ago

React version of Pay Button is the wrapper for the javascript version. For more detailed information about the API, please check the javascript documentation. The documentation for the also applies directly to the React version.

How to install React components:

npm install @getpip/react-pip-button 

How to use the button in React project:

import { PIPButton } from "@getpip/react-button"

const PIPPage: React.FC = () => {
  return (
    <div>
      <PIPButton
        receiver="..."
        amount={1}
        chainNetwork="..."
        asset="..."
      />
    </div>
  )
}
Name
Required
Type
Default Value

receiver

true

string

null

amount

true

string

null

currency

true

string

β€˜USDC’

chainNetwork

false

string

β€˜SOLANA’

label

false

string

β€˜PAY’

useLabel

false

boolean

true

buttonColor

false

string

β€˜#1149FF’

buttonTextColor

false

string

β€˜#FFFFFF’

onLoad

false

function

null

onPayment

false

function

null

onError

false

function

null

πŸ”·
javascript version