StreamPayments components
Build your own checkout flow for your website or app, fully white labelled
Quick start guide
Resources
yarn add @stream-pay/react1. Embed a Pay Link or Pay Stream with the StreamPay button
import { StreamPay } from "@stream-pay/react";
const App = () => {
return (
<div>
<StreamPay
cluster="devnet"typ
paymentRequestId={"your_paylink_id"}
onSuccess={function (event: SuccessPaymentEvent): void {
console.log("onSuccess", event);
}}
onError={function (event: ErrorPaymentEvent): void {
console.log("onError", event);
}}
onPending={function (event: PendingPaymentEvent): void {
console.log("onPending", event);
}}
onStartPayment={function (): void {
console.log("onStartPayment");
}}
/>
</div>
);
};2. Embed a Dynamic payment with the StreamPay button
3. Process Dynamic payments WITHOUT the StreamPay button
Last updated
