diff --git a/.gitignore b/.gitignore index b512c09..1dcef2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -node_modules \ No newline at end of file +node_modules +.env \ No newline at end of file diff --git a/config/routes/payments/qiwi.payment.js b/config/routes/payments/qiwi.payment.js index 0482079..89ad332 100644 --- a/config/routes/payments/qiwi.payment.js +++ b/config/routes/payments/qiwi.payment.js @@ -23,7 +23,7 @@ module.exports = function(server, db, qiwiApi) { themeCode: 'Sergei-YaS7mIY0CQe' }, email: req.body.email, - successUrl: `${process.env.HOSTNAME_URI}/success?bill_id=${billId}&item_id=${ids.join('and')}&payment=qiwi` + successUrl: `${req.headers.origin}/success?bill_id=${billId}&item_id=${ids.join('and')}&payment=qiwi` } qiwiApi.createBill(billId, fields).then((data) => { res.send(data);