Category : node.js

Who can translate the PHP code here to me with node.js. Can we make this code node.js compatible. Please help me I need a lot <?php class Shopier { private $payment_url = ‘https://www.shopier.com/ShowProduct/api_pay4.php’; private $api_key, $api_secret, $module_version, $buyer = [], $currency = ‘TRY’; public function __construct($api_key, $api_secret, $module_version = (‘1.0.4’)) { $this->api_key = $api_key; $this->api_secret ..

Read more

I am using express Node JS to connect to a MySQL database in phpMyAdmin. However, I keep getting this error: code: ‘ER_DBACCESS_DENIED_ERROR’, errno: 1044, sqlMessage: "Access denied for user ‘username’@’%’ to database ‘FakeInsurance’", sqlState: ‘42000’, fatal: true This is my code connecting to the database: const db = mysql.createConnection({ user: ‘username’, host: ‘[omitted IP Address]’, ..

Read more

I have to communicate a Javascript application (NodeJS) with a PHP SOAP server. Right now, I’m using the soap package, which I’ve used in another projects (Java SOAP servers) successfully. However, I’m having some troubles this time trying to make both parts understand each other. I’ll show you an example of a request (I’ve simplified ..

Read more