circle-multichain-checkout
v0.0.44
Published
Universal merchant payment gateway using CCTP V2 CIRCLE
Downloads
25
Readme
Circle Multichain Checkout
Built by Nithin Reddy
A merchant-focused npm package for seamless cross-chain USDC payments using Circle's CCTP V2 protocol. Accept USDC payments from any supported EVM chain and receive them on your preferred destination chain.
Features
- Cross-Chain USDC Transfers: Accept payments from any supported EVM chain
- CCTP V2 Integration: Powered by Circle's Cross-Chain Transfer Protocol
- Merchant-Friendly: Simple integration with single line
- Multi-Chain Support: Currently supports Ethereum Sepolia, Avalanche Fuji, Base Sepolia, and more
- Coming Soon: Solana mainnet and Devnet support for complete cross-chain across all Major Chains
Supported Chains
- Unichain Sepolia
- Ethereum Sepolia
- Avalanche Fuji C-Chain
- Base Sepolia
- Sonic
- Worldchain
- Arbitrum Fuji
Installation
npm install circle-multichain-checkout
# or
yarn add circle-multichain-checkoutQuick Start
import { CheckoutPage } from 'circle-multichain-checkout';
<CheckoutPage
merchantAddress="0xcfb31219238fe98eff27BBae2a00cEEaf0bE8BE5"
preferredChain={84532}
amount="99.99"
onSuccess={(txHash) => console.log('Payment successful:', txHash)}//handle successful payment
onError={(error) => console.error('Payment failed:', error)}//handle custom error
/>How It Works
- Customer selects source chain (where they have USDC)
- System burns USDC on source chain using CCTP V2
- Circle provides attestation for the cross-chain transfer
- USDC is minted on your preferred destination chain
- You receive USDC on your specified address
Use Cases
- E-commerce: Accept USDC payments from any chain
- SaaS Subscriptions: Cross-chain recurring payments
- NFT Marketplaces: Multi-chain payment support
- DeFi Protocols: Cross-chain liquidity provision
- Gaming: In-game purchases with any chain's USDC
Built by Nithin Reddy
