Developer guide
Installation
npm install @beep-it/checkout-widget @beep-it/sdk-core
Quick Start
import React from 'react';
import { CheckoutWidget } from '@beep-it/checkout-widget';
function App() {
return (
<CheckoutWidget
publishableKey="your-publishable-key"
primaryColor="#007bff"
labels={{
scanQr: 'Scan QR Code to Pay',
paymentLabel: 'My Store Checkout',
}}
assets={[
{
assetId: 'product-uuid-123',
quantity: 2,
name: 'Premium Coffee',
description: 'Fresh roasted arabica beans',
},
]}
serverUrl="https://your-beep-server.com" // optional
/>
);
}Asset Types
1. Existing Product References (BeepPurchaseAsset)
BeepPurchaseAsset)2. On-the-Fly Product Creation (CreateProductPayload)
CreateProductPayload)Props
Prop
Type
Required
Description
Asset Props
Prop
Type
Required
Description
Prop
Type
Required
Description
Features
Core Functionality
User Experience
Developer Experience
Usage Examples
Simple Single Product
Multiple Products with Custom Labels
Dynamic Product Creation
Mixed Asset Types
Payment Flow
Error Handling
Sui Payment Integration
Development
Environment Variables
TypeScript Support
Last updated
