const { FedaPay, Customer } = require('fedapay');/* Replace YOUR_SECRETE_API_KEY with your real API key */FedaPay.setApiKey("YOUR_SECRETE_API_KEY");/* Specify whether you want to run your query in test or live mode */FedaPay.setEnvironment('sandbox'); //or setEnvironment('live');/* Create customer */const customer = await Customer.create({ firstname: 'John', lastname: 'Doe', email: 'john@doe.com', phone_number: { number: '90090909', country: 'BJ' }});
To go further with Node.js integration, explore the following resources:Official GitHub repository : fedapay-nodeAPI Reference : api-referenceDemo app source code : node-sampleLive Demo : nodesampleThese resources provide a solid foundation for integrating FedaPay into your Node.js projects, with ready-to-use code examples.