All Categories
💳

Payment

Adyen API
Adyen
Enterprise payment platform processing payments for Uber, Spotify, and Microsoft.
Online PaymentsIn-store POSRisk ManagementPayoutsMulti-currency
API KeyPaidReal-timeGlobal
Quick start
import { Client, Config, CheckoutAPI } from '@adyen/api-library';
const config = new Config({ apiKey: process.env.ADYEN_API_KEY, environment: 'TEST' });
const client = new Client({ config });
const checkout = new CheckoutAPI(client);

const response = await checkout.PaymentsApi.payments({
  merchantAccount: 'YOUR_MERCHANT_ACCOUNT',
  amount: { currency: 'EUR', value: 1000 },
  reference: 'YOUR_ORDER_NUMBER',
  paymentMethod: { type: 'scheme', number: '4111111111111111', expiryMonth: '03', expiryYear: '2030', cvc: '737' },
});
console.log(response.resultCode);
Visit
Braintree API
Braintree / PayPal
PayPal-owned payment gateway with support for cards, PayPal, Venmo, and crypto.
Card ProcessingPayPal & VenmoSubscriptionsFraud ToolsVaulting
API KeyPaidReal-timeGlobal
Quick start
import braintree from 'braintree';
const gateway = new braintree.BraintreeGateway({
  environment: braintree.Environment.Sandbox,
  merchantId: process.env.BT_MERCHANT_ID,
  publicKey: process.env.BT_PUBLIC_KEY,
  privateKey: process.env.BT_PRIVATE_KEY,
});

const result = await gateway.transaction.sale({
  amount: '10.00',
  paymentMethodNonce: 'fake-valid-nonce',
  options: { submitForSettlement: true },
});
console.log(result.transaction.id);
Visit
PayPal API
PayPal
PayPal REST APIs for payments, payouts, subscriptions, and invoicing.
PaymentsPayoutsSubscriptionsInvoicingDisputes
OAuthPaidReal-timeGlobal
Quick start
const { default: checkoutNodeJssdk } = await import('@paypal/checkout-server-sdk');
const env = new checkoutNodeJssdk.core.SandboxEnvironment(CLIENT_ID, CLIENT_SECRET);
const client = new checkoutNodeJssdk.core.PayPalHttpClient(env);

const request = new checkoutNodeJssdk.orders.OrdersCreateRequest();
request.requestBody({
  intent: 'CAPTURE',
  purchase_units: [{ amount: { currency_code: 'USD', value: '10.00' } }],
});
const order = await client.execute(request);
console.log(order.result.id);
Visit
Square API
Square
Point-of-sale and online payment APIs with inventory and customer management.
Card PaymentsPOSInventoryCustomer ProfilesLoyalty
OAuthPaidReal-timeGlobal
Quick start
import { Client, Environment } from 'squareup';
const client = new Client({ accessToken: process.env.SQUARE_ACCESS_TOKEN, environment: Environment.Sandbox });

const { result } = await client.paymentsApi.createPayment({
  sourceId: 'cnon:card-nonce-ok',
  idempotencyKey: crypto.randomUUID(),
  amountMoney: { amount: BigInt(1000), currency: 'USD' },
});
console.log(result.payment.id);
Visit
Stripe API
Stripe
The most widely used payment infrastructure API. Payments, subscriptions, invoicing, and fraud detection.
Payment ProcessingSubscriptionsInvoicingFraud DetectionPayouts
API KeyPaidReal-timeGlobal
Quick start
import Stripe from 'stripe';
const stripe = new Stripe(process.env.STRIPE_SECRET_KEY);

const paymentIntent = await stripe.paymentIntents.create({
  amount: 2000, // $20.00
  currency: 'usd',
});
console.log(paymentIntent.client_secret);
Visit