NestJS
In a NestJS application, keep the Node.js SDK client in the service layer shared by checkout and IPN handling.
dpay SDK · Node.js
Add payments to a Node.js backend without hand-crafting every API call. The official SDK helps with checksums, transaction registration, IPN and integration errors.
Install
Node.jsnpm install @dpayglobal/dpay-node-sdkThe short answer
A dpay SDK is an official library that simplifies online payment integration with the dpay API. It reduces custom code for checksums, API calls, IPN verification and error handling.
Backend ecosystem
The SDK is a backend library. Keep the dpay client in your service layer and load Payment Point credentials from secure server configuration.
In a NestJS application, keep the Node.js SDK client in the service layer shared by checkout and IPN handling.
In a Express i Fastify application, keep the Node.js SDK client in the service layer shared by checkout and IPN handling.
In a TypeScript lub JavaScript application, keep the Node.js SDK client in the service layer shared by checkout and IPN handling.
Integration layer
The Node.js library wraps recurring payment lifecycle tasks in methods and types that fit the language ecosystem.
The library calculates the checksum required for each request.
Request integrity
Ready methods simplify payment registration and transaction handling.
Less HTTP code
The SDK helps validate a notification before the order status changes.
Secure webhooks
Exceptions and error codes make logging, retries and diagnosis clearer.
Predictable handling
Starter code
Get service credentials from the Payment Point settings. Store the Secret Hash in environment configuration or a secrets manager, never in the repository or frontend code.
Secret Hash → server only
import {DPayClient} from "@dpayglobal/dpay-node-sdk";
const dpay = new DPayClient({
service: "service_name",
secretHash: "secret_hash",
});Implementation flow
The secure implementation flow stays the same across technologies.
Add the official package to your backend and pin the version according to your project rules.
Pass the service name and Secret Hash from secure server configuration only.
Send the amount plus success, failure and IPN URLs, then redirect the customer to the returned payment URL.
After successful notification verification, update the order status in your database.
Other technologies
Compare the available libraries and choose the language that best fits your product architecture.
Integrator FAQ
Install the package with “npm install @dpayglobal/dpay-node-sdk”, create a client with the service name and Secret Hash, then call the payment registration method described in the Node.js SDK documentation.
Yes. Published dpay SDKs calculate checksums according to the API specification. The Secret Hash must still remain secure on the server.
The library helps verify the IPN signature and parse the notification. Change order state only after successful verification.
You need Payment Point credentials, primarily the service name and Secret Hash. See the library documentation for its complete requirements.
Full documentation
See installation, complete examples, IPN handling, errors and the remaining operations available in the library.