The examples below show you how you can configure the PaymentsDS JavaScript SDK
import { Client } from "@paymentsds/mpesa"const client = new Client({apiKey: "<REPLACE>", // API KeypublicKey: "<REPLACE>", // Public KeyserviceProviderCode: "<REPLACE>", // input_ServiceProviderCode,initiatorIdentifier: "<REPLACE>", // input_InitiatorIdentifier,securityIdentifier: "<REPLACE>", // input_SecurityCredentialtimeout: "<REPLACE>", // time in secondsdebugging: true,verifySSL: false,userAgent: "<REPLACE>",})
import { Client } from "@paymentsds/mpesa"const client = new Client({accessToken: "<REPLACE>", // Precomputed access tokenserviceProviderCode: "<REPLACE>", // input_ServiceProviderCode,initiatorIdentifier: "<REPLACE>", // input_InitiatorIdentifier,securityIdentifier: "<REPLACE>", // input_SecurityCredentialtimeout: "<REPLACE>", // time in secondsdebugging: true,verifySSL: false,userAgent: "<REPLACE>",})