Appearance
Deeplinks
Overview
Deeplinks allow your MiniApp to interact with MiniPay's native features, such as the Add Cash screen. This integration enables a smoother user experience by eliminating the need for users to manually navigate through MiniPay's interface.
Available Deeplinks
Add Cash Screen
The Add Cash screen allows users to purchase cryptocurrencies directly within MiniPay.
Basic Usage
html
<!-- Using an anchor tag -->
<a href="https://minipay.opera.com/add_cash">Add Cash</a>
javascript
// Redirect to the Add Cash screen
window.location.href = "https://minipay.opera.com/add_cash";
With Token Selection
You can specify which tokens to display in the Add Cash screen by using the tokens
parameter:
html
<!-- Using an anchor tag with CUSD -->
<a href="https://minipay.opera.com/add_cash?tokens=CUSD">Add CUSD</a>
<!-- Using a button with multiple tokens -->
<button
onclick="window.location.href='https://minipay.opera.com/add_cash?tokens=CUSD,USDT,USDC'"
>
Add Multiple Tokens
</button>
<!-- Using a form with select options -->
<form
onsubmit="event.preventDefault(); window.location.href='https://minipay.opera.com/add_cash?tokens=' + document.getElementById('tokenSelect').value"
>
<select id="tokenSelect">
<option value="CUSD">CUSD</option>
<option value="USDT">USDT</option>
<option value="USDC">USDC</option>
</select>
<button type="submit">Add Cash</button>
</form>
javascript
// Show only CUSD
window.location.href = "https://minipay.opera.com/add_cash?tokens=CUSD";
// Show multiple tokens
window.location.href =
"https://minipay.opera.com/add_cash?tokens=CUSD,USDT,USDC";
Supported Tokens
The following tokens are supported in the Add Cash screen:
CUSD
- Celo DollarUSDT
- TetherUSDC
- USD Coin
Limitations
- Deeplinks only work in MiniApps running within the MiniPay application.