Documentation Index
Fetch the complete documentation index at: https://developer.litprotocol.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Lit Chipotle supports purchasing credits with cryptocurrency through Stripe’s crypto payment integration. You can pay with ETH, USDC, SOL, and other supported tokens directly from your wallet — no fiat currency or credit card required. Under the hood, Stripe converts the crypto payment into credits on your account using the same billing endpoints as card payments.Paying with Crypto via the Dashboard
The simplest way to add funds with crypto:- Log in to the Dashboard.
- Click Add Funds in the top-right corner.
- Select a credit package (see Credit Packages).
- On the Stripe checkout page, choose Crypto as the payment method.
- Connect your wallet (MetaMask, Coinbase Wallet, or WalletConnect) and approve the transaction.
Crypto payments are processed by Stripe and are subject to Stripe’s supported tokens and networks. Check Stripe’s crypto documentation for the latest supported assets.
Paying with Crypto via the API
You can also initiate crypto payments programmatically using the billing API. The flow mirrors the standard Stripe card payment flow, but you pass crypto-specific parameters when confirming on the client side. Examples below assume the following setup:$KEY for your API key.
Step 1: Get the Stripe publishable key
- JavaScript
- cURL
Step 2: Create a PaymentIntent
Create a PaymentIntent for the desired amount (minimum 500 cents = $5.00).- JavaScript
- cURL
Step 3: Confirm the payment with Stripe.js (crypto)
Use theclient_secret returned from Step 2 with Stripe.js to present the crypto payment option. Stripe handles wallet connection and on-chain transaction signing.
Step 4: Confirm payment and credit the account
After Stripe confirms the crypto payment has settled, call the confirm endpoint to apply credits.- JavaScript
- cURL
Step 5: Verify your balance
- JavaScript
- cURL
Supported Tokens and Networks
Stripe’s crypto payment support includes the following (subject to change):| Token | Networks |
|---|---|
| USDC | Ethereum, Solana, Polygon |
| USDP | Ethereum |
| ETH | Ethereum |
| SOL | Solana |
Stripe automatically handles the conversion from crypto to USD at the current exchange rate. The credit amount you receive matches the USD value of the package you selected — there are no additional conversion fees from Lit.
Frequently Asked Questions
How long does it take for credits to appear?Credits are applied after the on-chain transaction reaches sufficient confirmations. For most networks this takes 1-5 minutes. Stripe handles the confirmation monitoring automatically. Is there a minimum payment?
Yes, the same $5.00 minimum (500 cents) applies to crypto payments, matching the Starter package. What wallets are supported?
Any wallet compatible with Stripe’s crypto on-ramp, including MetaMask, Coinbase Wallet, and WalletConnect-compatible wallets. What if my transaction fails or reverts?
If the on-chain transaction fails, no credits are deducted and no charge is applied. You can retry the payment. Can I get a refund in crypto?
Refund policies follow the same terms as card payments. Contact the Lit Protocol team via Discord for refund requests.