This is a demo of how any e-commerce site integrates Trustify escrow payments. Back to Trustify
TechMart

Demo E-Commerce Store

Powered by Trustify

Shop with Escrow Protection

Every purchase is secured by Trustify. Funds are held in a Solana smart contract until you confirm delivery. No risk for buyers or sellers.

Featured Products

🎧

Wireless Headphones

Premium noise-cancelling wireless headphones

0.5 SOL
Escrow
⌨️

Mechanical Keyboard

Cherry MX switches, RGB backlit

1.2 SOL
Escrow
🔌

USB-C Hub

7-in-1 multiport adapter

0.3 SOL
Escrow
💻

Laptop Stand

Adjustable aluminum laptop stand

0.8 SOL
Escrow

How Integration Works

Adding Trustify escrow to any site takes four steps

Step 1

Import Component

Add the TrustifyButton component to your project

Step 2

Set Amount

Pass the payment amount and description as props

Step 3

User Pays

Buyer clicks the button and approves the wallet transaction

Step 4

Escrow Created

Funds are locked on-chain until delivery is confirmed

Integration Code

This is the actual code powering the buy buttons above

product-card.tsx
import { TrustifyButton } from "@/sdk/TrustifyButton"

function ProductCard({ name, price }) {
  return (
    <div className="product-card">
      <h3>{name}</h3>
      <p>{price} SOL</p>

      <TrustifyButton
        amount={price}
        description={`Purchase: ${name}`}
        onSuccess={(signature) => {
          // Handle successful escrow creation
          console.log("Escrow created:", signature)
        }}
        onError={(error) => {
          console.error("Payment failed:", error)
        }}
      />
    </div>
  )
}