Quick Start Guide

Get up and running with PayAiML in under 10 minutes. This guide will walk you through creating your first payment.

Create your account
Sign up for a free PayAiML account and verify your email address.
2
Get your API keys
Navigate to your dashboard and copy your publishable and secret keys.
3
Install the SDK
Add PayAiML to your project using npm, yarn, or your preferred package manager.
4
Create a payment
Use our API to create your first payment and test the integration.

Install PayAiML

npm
npm install @payaiml/node
yarn
yarn add @payaiml/node

Create a payment

JavaScript
const payaiml = require('@payaiml/node')('sk_test_...');

const payment = await payaiml.payments.create({
  amount: 2000,
  currency: 'usd',
  payment_method: 'pm_card_visa',
  confirm: true,
});

console.log(payment.status);

Next steps

Now that you've created your first payment, explore more advanced features.

Handle webhooks
Learn how to receive real-time notifications about payment events.
Accept subscriptions
Set up recurring billing for subscription-based businesses.
Prevent fraud
Enable AI-powered fraud detection to protect your business.