Integrate Pay with CryptoPublic preview
Start accepting crypto by integrating Pay with Crypto.
Pay with Crypto works with Checkout, Elements, or can be directly integrated through the Payment Intents API. If you’re a Connect platform, see Connect support.
When integrated, the option to pay with crypto appears in your checkout page, redirecting customers to a page hosted by crypto.link.com for payment completion. There, your customers can connect their wallet, and save and reuse their account using Link. You’re immediately notified if the payment succeeds or fails. Before you get started, see our Pay with Crypto demo.
Let your users pay with crypto
Before you can enable crypto as a payment method within the prebuilt checkout page, go to your payment methods settings and request the Crypto. After we review your information and approve you as a user, the Crypto payment method appears as active in the Stripe Dashboard.
When creating a new Checkout Session, you need to:
Add
crypto
to the list ofpayment_
.method_ types Make sure all
line_
useitems usd
.
curl https://api.stripe.com/v1/checkout/sessions \ -u
: \ -d mode=payment \ -d "payment_method_types[0]"=crypto \ -d "line_items[0][price_data][currency]"=usd \ -d "line_items[0][price_data][product_data][name]"=T-shirt \ -d "line_items[0][price_data][unit_amount]"=2000 \ -d "line_items[0][quantity]"=1 \ --data-urlencode success_url="https://example.com/success"sk_test_4eC39HqLyjWDarjtT1zdp7dc
Test your integration
To test your integration:
Choose Crypto as the payment method and tap Pay.
In test mode, this redirects you to a test payment page where you can pay with testnet crypto assets.
Make sure that your wallet is configured to the test network you intend to pay over. For example, if you want to pay with USDC on Ethereum, make sure your wallet is set to Ethereum’s Sepolia test network.
Fund your wallet with test assets
You can use testnet “faucets” to top up your wallet. Here are a few: