This page demonstrates how to integrate Conduit's secure escrow payment system into your website. Click the buttons below to see different integration modes.
Simple one-time payment with popup checkout
Full page redirect checkout with USDT option
Let users choose their own amount
<script src="https://app.instantescrow.nz/conduit-checkout.js"></script><script>
ConduitCheckout.init({
// Your wallet address to receive payments
sellerAddress: '0x4f118f99a4e8bb384061bcfe081e3bbdec28482d',
// Base URL of Conduit checkout page
baseUrl: 'https://app.instantescrow.nz',
// Default token (USDC or USDT)
tokenSymbol: 'USDC',
// Days until auto-release to seller (default: 7)
expiryDays: 7,
// Display mode: 'popup' or 'redirect'
mode: 'popup',
// Success callback
onSuccess: function(data) {
console.log('Payment completed!', data);
alert('Payment successful! Transaction: ' + data.transactionHash);
},
// Error callback
onError: function(error) {
console.error('Payment failed:', error);
alert('Payment failed: ' + error);
},
// Cancel callback
onCancel: function() {
console.log('Payment cancelled');
alert('Payment cancelled');
}
});
</script><!-- Simple button -->
<button onclick="ConduitCheckout.open({
amount: '50.00',
description: 'Premium Product'
})">
Pay $50 with USDC
</button>
<!-- Button with more options -->
<button onclick="ConduitCheckout.open({
amount: '100.00',
description: 'Order #1234 - Widget Bundle',
orderId: '1234',
email: 'customer@example.com',
tokenSymbol: 'USDT',
expiryDays: 14,
webhookUrl: 'https://yoursite.com/webhook',
metadata: { sku: 'WIDGET-001', quantity: 2 }
})">
Pay $100 with USDT
</button>Initialize the checkout widget with your configuration:
sellerAddress (required) - Your wallet address to receive paymentsbaseUrl (required) - Base URL of the Conduit checkout pagetokenSymbol (optional) - Default token: 'USDC' or 'USDT' (default: 'USDC')expiryDays (optional) - Days until auto-release (default: 7)mode (optional) - Display mode: 'popup' or 'redirect' (default: 'popup')onSuccess (optional) - Success callback functiononError (optional) - Error callback functiononCancel (optional) - Cancel callback functionOpen a checkout for a specific payment:
amount (required) - Payment amount (e.g., '50.00')description (required) - Payment descriptionorderId (optional) - Your order/transaction IDemail (optional) - Customer email addresstokenSymbol (optional) - Override default token for this paymentexpiryDays (optional) - Override default expiry for this paymentexpiryTimestamp (optional) - Custom expiry Unix timestampwebhookUrl (optional) - Webhook URL for payment verificationmetadata (optional) - Custom metadata objectProgrammatically close any open checkout.
If you provide a webhookUrl, Conduit will POST payment verification data to your endpoint:
{
"transaction_hash": "0x...",
"contract_address": "0x...",
"contract_id": "abc123",
"order_id": 1234,
"expected_amount": 50.00,
"expected_recipient": "0x...",
"merchant_wallet": "0x..."
}