Skip to content
Snippets Groups Projects
Commit f1bab2e8 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

also handle refunds

parent 0c20f5bd
No related branches found
No related tags found
No related merge requests found
Pipeline #9934 passed
...@@ -33,7 +33,7 @@ router.get("/event", (req, res) => { ...@@ -33,7 +33,7 @@ router.get("/event", (req, res) => {
payment_processor_data: req.query, payment_processor_data: req.query,
}) })
.then(async payment => redirect_url); .then(async payment => redirect_url);
} else if (req.query.function == "storno") { } else if (["refund", "storno"].includes(req.query.function)) {
return payment_reference return payment_reference
.createPayment({ .createPayment({
price: price * -1, price: price * -1,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment