Build payment experiences with our powerful APIs
npm install @hedgepayments/sdk
import HedgePayments from '@hedgepayments/sdk'
const hedge = new HedgePayments({
apiKey: 'YOUR_API_KEY',
sandbox: true // Use sandbox environment
})
// Create a wallet
const wallet = await hedge.wallets.create({
userId: 'user_123',
currency: 'USD'
})
// Process a payment
const payment = await hedge.transactions.create({
amount: 50.00,
currency: 'USD',
method: 'card',
paymentMethodId: 'pm_123',
description: 'Order #12345'
})
console.log('Payment processed:', payment.id)
pk_test_4242424242424242
sk_test_••••••••••••4242
Use test keys to explore the API without real transactions
Our team is here to help you integrate HedgePayments