Documentation

Everything You Need to Integrate

JavaScript SDK
// Initialize the client
const client = new WoodwardClient({
  apiKey: process.env.API_KEY,
  environment: 'sandbox'
});

// Create a payment
const payment = await client.payments.create({
  amount: 1000,
  currency: 'USD',
  description: 'Order #12345',
  paymentMethod: {
    type: 'card',
    card: {
      number: '4242424242424242',
      expMonth: 12,
      expYear: 2025,
      cvc: '123'
    }
  }
});

console.log('Payment created:', payment.id);

Quick Start

Get started with our SDK in minutes. Follow these steps to make your first API call.

1. Install the SDK

npm install @woodward/sdk

2. Initialize the Client

Create a client instance with your API key:

import { WoodwardClient } from '@woodward/sdk';

const client = new WoodwardClient({
  apiKey: 'sk_live_xxx',
  environment: 'live'
});

3. Make Your First Call

const payment = await client.payments.create({
  amount: 1000,
  currency: 'USD',
  description: 'Test payment'
});

Next Steps