diff --git a/pass/routes/checkout/micropayment.js b/pass/routes/checkout/micropayment.js index f3e514328b9c670a3badd2fb2655db6bbdad9665..a56aed5a7844ade3139d31f1bbd6a84ef89c421e 100644 --- a/pass/routes/checkout/micropayment.js +++ b/pass/routes/checkout/micropayment.js @@ -33,7 +33,7 @@ router.get("/event", (req, res) => { payment_processor_data: req.query, }) .then(async payment => redirect_url); - } else if (req.query.function == "storno") { + } else if (["refund", "storno"].includes(req.query.function)) { return payment_reference .createPayment({ price: price * -1,