$ npm install @stanpe/node

Built for engineers.

Comprehensive APIs, robust webhooks, and elegant SDKs. Integrate global payments into your application in an afternoon, not a month.

7 lines of code to accept global payments.

Our official SDKs give you predictable, type-safe access to the StanPe API. With a few lines of code, you can initiate payments, handle secure authentication via 3D Secure, and listen to real-time webhooks.

  • Official libraries for Node.js, Python, Ruby, PHP, and Go.
  • Built-in automatic request retries and idempotency.
  • Seamless webhook signature validation.
1import StanPe{ } from '@/node';
2
3const StanPe = ('sk_live_12345...');
4
5// Create a new payment intent
6const stanpeintent = .paymentIntents.create({
7 amount: 4999, // $49.99
8 currency: 'usd',
9 payment_method_types: ['card', 'apple_pay'],
10 description: 'Pro Subscription',
11 metadata: {
12 order_id: 'ord_12345',
13 },
14});
15
16console.log(intent.client_secret);