Official SDKs for various programming languages and platforms to quickly integrate ApexonPay payment functionality
Complete solution for modern web applications
<!-- CDN inclusion -->
<script src="https://cdn.apexonpay.com/js/apexonpay.min.js"></script>
<!-- Or install via npm -->
npm install @apexonpay/js
// Initialize ApexonPay
const apexonpay = new ApexonPay('pk_test_your_publishable_key_here', {
apiVersion: '2024-01-01',
locale: 'en-US'
});
// 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);
}