mirror of
https://github.com/sergeyyarkov/digital-store.git
synced 2026-10-11 10:19:15 +03:00
origin header
This commit is contained in:
parent
73929244f4
commit
af04a2619e
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,2 @@
|
||||
node_modules
|
||||
node_modules
|
||||
.env
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user