Documentation
uPay SDK
Accept any token on any chain and settle in USDC on Arc Testnet. Pick the integration that fits your stack.
Installation
npm install upay-arc-sdkTry it live
This is the real component. Click to open the checkout.
UPayButton · $1.00
React component
The publishable key and amount are all it needs. Add settle to override which token this button settles in — otherwise it uses whatever you set in dashboard Settings.
import { UPayButton } from 'upay-arc-sdk'
<UPayButton
apiKey="pk_test_..."
amount={40}
/>JavaScript, no React
Create a session and open the checkout in a popup, from any browser JS context.
import { UPay } from 'upay-arc-sdk'
const upay = new UPay({ apiKey: 'pk_test_...' })
const session = await upay.createCheckout({ amount: 40 })
upay.openCheckout(session.id)Server-side session
Create a session server-side and redirect the customer to it — no client-side SDK needed at all.
import { UPay } from 'upay-arc-sdk'
const upay = new UPay({ apiKey: process.env.UPAY_API_KEY })
const session = await upay.createCheckout({ amount: 40 })
return redirect(session.checkoutUrl)