Accept any token on any chain and settle in the stablecoin you choose. Pick the integration that fits your stack.
npm install @alphadevs_labs/upay-sdkThis is the real component. Click to open the checkout.
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 src="https://cdn.upay.xyz/v1.js"></script> <button data-upay data-amount="40" data-settle="USDC:base"> Pay with UPay </button>
const session = await upay.sessions.create({ amount: 40, settle: { token: 'USDC', chain: 'base' }, success_url: 'https://pixelthreads.xyz/done' }) return redirect(session.url)