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' }});
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' }});