Payments
Use cases of payments on Stacks
Enable fast, Bitcoin-settled transactions using assets like sBTC and STX, with developer tooling support and easy wallet integrations. Stacks brings the liquidity, speed, and logic of modern payments to Bitcoin — fast digital transfers, smarter payment rules, and the UX digital payments deserve.
Here are the payment use cases developers are building with today:
sBTC Pay
sBTC Pay provides a payment gateway with APIs and webhooks for developers to instantly integrate a simple sBTC payment system in their app. A complete "Stripe for sBTC" payment gateway that enables businesses to easily accept Bitcoin payments via sBTC on Stacks blockchain.
Implementation highlight:
sBTC Pay comes with a few integration methods developers can start using right away. The React component from its @sbtc-gateway/react library provides UI components for readily usable sBTC payments.
import { SBTCProvider, PaymentButton } from '@sbtc-gateway/react';
function App() {
return (
<SBTCProvider apiKey="sk_test_...">
<PaymentButton
amount={100000}
description="Product purchase"
onSuccess={(paymentIntent) => console.log('Success!', paymentIntent)}
/>
</SBTCProvider>
);
}Bolt Wallet
Bolt wallet not only enables sBTC as transaction fees, but also boasts lightning bolt speed for payments on Stacks while guaranteeing transaction confirmation. This is made possible by Stacks' sponsor transaction feature and optimistic confirmations.
Implementation highlight: The code snippet below demonstrates how to transfer sBTC between Stacks wallets while paying the fee in sBTC instead of STX using Bolt Protocol's sponsorship feature.
Last updated
Was this helpful?
