SDK Documentation

Official SDKs for various programming languages and platforms to quickly integrate ApexonPay payment functionality

JavaScript

Stable

Complete solution for modern web applications

Version: v3.2.1

React

Stable

Component library for React applications

Version: v2.1.0

Node.js

Stable

Server-side JavaScript runtime environment

Version: v4.0.2

Python

Stable

Backend integration for Python applications

Version: v3.1.4

PHP

Stable

PHP server-side integration library

Version: v2.3.1

iOS

Stable

Native integration for iOS applications

Version: v1.8.3

Android

Stable

Native integration for Android applications

Version: v1.7.2

Flutter

Beta

Cross-platform mobile app development

Version: v0.9.1

JavaScript SDK

Complete solution for modern web applications

Installation

<!-- CDN inclusion --> <script src="https://cdn.apexonpay.com/js/apexonpay.min.js"></script> <!-- Or install via npm --> npm install @apexonpay/js

Quick Links

GitHub Repository
View source code and contribute
Installation Command
https://cdn.apexonpay.com/js/apexonpay.min.js

Initialization

// Initialize ApexonPay const apexonpay = new ApexonPay('pk_test_your_publishable_key_here', { apiVersion: '2024-01-01', locale: 'en-US' });

Create Payment

// Create payment const { paymentIntent, error } = await apexonpay.createPaymentIntent({ amount: 5000, // 50.00 USD in cents currency: 'usd', customer: 'cus_customer_id', description: 'Payment for order #12345' }); if (error) { console.error('Payment creation failed:', error); } else { console.log('Payment intent created:', paymentIntent); }