Nelnet Payment Services SDK
Secure, PCI-compliant payment processing through iframe-based tokenization
The NPS payment integration uses JWT authentication and secure iframe architecture SDK to ensure payment data never touches your servers.
🔐 Secure Payment Integration Flow
🖥️
Server-side
JWT Auth
Session Token
☁️
NPS API
Session Token
🌐
Client-side
📦
NPS SDK
💳
Secure Payment Form
Isolated iFrame
Security First
| Developer Friendly
|
The NPS JavaScript SDK provides secure payment collection through an isolated iframe architecture.
const nps = new NPS({
sessionToken: 'your_session_token/random_key'
sessionId: 'session_id'
});1
Install SDK<script src="https://cdn.nelnetpay.com/sdk/v1.0.0/nps.js"></script>2
Create Session// Server-side: Request session
const session = await createPaymentSession();3
Initialize object and Payment Form// Client-side
const nps = new NPS({
sessionToken: 'your_session_token/random_key'
sessionid: 'session_id'
});
//Mount secure payment form
nps.mount('#payment-container');4
Process Payment// Server-side: Use token to process payment
const result = await processPayment(token,);Test your integration across different environments to ensure compatibility
Verify your custom styling renders correctly:
nps.mount('#payment-container', {
styling: {
}
});Card Testing// Test card
nps.mount('#payment-container', {
paymentMethod: 'card'
}); | ACH Testing// Test ACH
nps.mount('#payment-container', {
paymentMethod: 'ach'
}); | Apple Pay Testing// Test Apple Pay
nps.mount('#payment-container', {
paymentMethod: 'applepay'
}); |
Testing Checklist
Test in all test environments
Verify custom styling appears correctly
Validate form behavior across devices
Test all supported payment methods
Verify error handling and messages
Test tokenization with various card types
Validate real-time formatting for various features
Verify accessibility features
Need Help?
Technical Support
NPSTechSupport@nelnet.net