Documentation
InstallationTry it liveReact componentScript tagAPI sessionWebhooksSoon

UPay SDK

Accept any token on any chain and settle in the stablecoin you choose. Pick the integration that fits your stack.

Installation

npm install @alphadevs_labs/upay-sdk

Try it live

This is the real component. Click to open the checkout.

UPayButton · $40.00

React component

import { UPayButton } from '@alphadevs_labs/upay-sdk'

<UPayButton
  apiKey="pk_live_8Kwz0Pn4aR2tVmH9"
  amount={40}
  settle={{ token: 'USDC', chain: 'base' }}
  onPaid={(tx) => fulfill(tx.hash)}
/>

Script tag

<script src="https://cdn.upay.xyz/v1.js"></script>
<button data-upay data-amount="40" data-settle="USDC:base">
  Pay with UPay
</button>

API session

const session = await upay.sessions.create({
  amount: 40,
  settle: { token: 'USDC', chain: 'base' },
  success_url: 'https://pixelthreads.xyz/done'
})
return redirect(session.url)
U
UPay© 2026 · tryupay.xyz
HomeDocsDashboard