AApt Commerce
Sign inGet started
Show for

Quick Start

Process your first payment in under 5 minutes.

1

Create an Account

Sign up for an Apt Commerce account. You'll receive test mode API keys immediately — no approval required for sandbox access.

2

Get Your API Keys

Navigate to Settings → API Keys to find your test keys.

Secret key: sk_test_abc123...
Publishable key: pk_test_xyz789...
3

Install an SDK

npm install @aptcommerce/node
pip install aptcommerce
4

Create a Test Payment

import AptCommerce from '@aptcommerce/node';

const apt = new AptCommerce('sk_test_your_key');

const transaction = await apt.transactions.create({
  amount: 2500,       // $25.00 in cents
  currency: 'usd',
  payment_method: 'card',
  card: {
    number: '4242424242424242',
    exp_month: 12,
    exp_year: 2027,
    cvc: '123',
  },
  description: 'Test payment',
});

console.log(transaction.status); // "completed"
5

Go Live

Once you've tested your integration, complete your account verification and swap your test keys for live keys. See Authentication for details on key management.