Payment Widget
A widget that allows builders to accept crypto payments.

Installation
Usage
Usage in React and Next.js
Props
Prop
Type
Description
Last updated
Was this helpful?
A widget that allows builders to accept crypto payments.

Last updated
Was this helpful?
Was this helpful?
npm install @requestnetwork/payment-widgetimport PaymentWidget from "@requestnetwork/payment-widget/react";
export default function PaymentPage() {
return (
<PaymentWidget
sellerInfo={{
logo: "https://example.com/logo.png",
name: "Example Store",
}}
productInfo={{
name: "Digital Art Collection",
description: "A curated collection of digital artworks.",
image: "https://example.com/product-image.jpg",
}}
amountInUSD={1.5}
sellerAddress="0x1234567890123456789012345678901234567890"
supportedCurrencies={["REQ-mainnet","ETH-sepolia-sepolia","USDC-mainnet"]}
persistRequest={true}
onPaymentSuccess={(request) => {
console.log(request);
}}
onError={(error) => {
console.error(error);
}}
/>
);
}