One-click payments
Learn how One-click crypto payments® work.
One-click crypto payments® revolutionize the way users pay with crypto by eliminating the traditional two-step approval process. This innovative solution combines token approval and transfer into a single, gasless transaction, providing a seamless experience similar to traditional payment methods while maintaining the security and transparency of blockchain technology.
Traditional payment flow
When making an ERC20 payment through a dapp, you are required to:
- sign an allowance for the dapp to spend on your behalf
- execute the transfer.
Both transactions have gas costs that the user needs to pay in ETH.
One-click crypto payment® flow
When using one-click crypto Payment® through our dapp, you only need to:
- Sign a permit function that bundles the allowance and transfer of funds.
This permit function has no gas cost, so you don’t need to pay any ETH.
- Our dapp requests to transfer the funds on your behalf, and we pay the gas in ETH.
Technical Implementation
One-click crypto payments® leverage the EIP-2612 permit standard to create a more efficient token approval mechanism. Here’s how it works:
-
Permit Signature: Instead of calling
approve()
, the dapp requests a permit signature from the user’s wallet. This signature contains:- The token approval amount (set to match the purchase amount)
- The deadline for the approval (set to 5 minutes only)
- The spender address (dapp)
- A nonce to prevent replay attacks
-
Bundled Transaction: The dapp then submits a single transaction that:
- Validates the permit signature
- Executes the token transfer
- Pays for all gas costs
-
Security Features:
- Time-bound approvals through deadlines (5 minutes only)
- Nonce-based signature verification
- Replay attack protection
- Atomic transactions (either both operations succeed or both fail)
Benefits
One-click crypto payments® offer significant advantages for both users and merchants:
For Users
- Simplified Experience: Single signature instead of two separate transactions
- No ETH Required: Users don’t need to hold ETH for gas fees
- Faster Checkout: Transaction time reduced by half
- Lower Costs: No gas fees to pay for approvals
- Better Security: Time-bound approvals with automatic expiration
For Merchants
- Higher Conversion Rates: Reduced friction leads to up to 30% more completed transactions
- Better User Experience: Customers are more likely to return
- Gas Cost Control: Predictable gas costs for the business
- Competitive Advantage: Stand out with modern payment solutions
- Increased Trust: Transparent and secure payment process
Transaction costs
Traditional allowance and transferFrom payment
Step | |
---|---|
Gas paid in | ETH |
Gas Cost | On L2s few cents |
Who pays Gas | User |
With one-click crypto payments®
Step | |
---|---|
Gas paid in | ERC20 |
Gas Cost | On L2s under one cent |
Who pays Gas | Merchant(ℹ︎) |
(ℹ︎) Merchants can limit the amount they want to sponsor. For example, 0.2% of the purchase value.
Supported tokens and chains
Chain | Tokens | Status |
---|---|---|
Base | USDC | ✅ |
Ethereum | USDC | comming soon |
Optimism | USDC | comming soon |
Arbitrum | USDC | comming soon |
Base | USDT | comming soon |
Ethereum | USDT | comming soon |
Optimism | USDT | comming soon |
Arbitrum | USDT | comming soon |
Frequently Asked Questions
What happens if a permit signature expires?
Permit signatures have a built-in deadline. If a signature expires before the transaction is processed, the user will need to sign a new permit. This is a security feature to prevent delayed or malicious transactions.
Do I need to hold any ETH in my wallet?
No, you don’t need to hold any ETH. All gas costs are covered by the merchant through the one-click payment system.
Which wallets support one-click payments?
One-click payments are supported by all major Web3 wallets that implement the EIP-2612 standard, including MetaMask, Coinbase Wallet, Binance Web3 wallet, WalletConnect, and most other popular wallets.
What happens if the transaction fails?
If a transaction fails, no tokens will be transferred from your wallet. The permit signature is only valid for a specific amount and time period, ensuring your funds remain secure.
Can I set a custom approval amount?
The permit signature is built with the specific amount needed for the purchase.
Is this solution secure?
Yes, one-click payments use industry-standard cryptographic signatures and follow the EIP-2612 specification. The system includes multiple security features like nonce verification and time-bound approvals.