From c8d9acc5f1fd4e462f92765881e6bdb042644281 Mon Sep 17 00:00:00 2001 From: MrPowerGamerBR Date: Tue, 23 Apr 2024 20:30:47 -0300 Subject: [PATCH] Whoops --- .../routes/api/v1/callbacks/PostMercadoPagoCallbackRoute.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/kotlin/net/perfectdreams/perfectpayments/backend/routes/api/v1/callbacks/PostMercadoPagoCallbackRoute.kt b/backend/src/main/kotlin/net/perfectdreams/perfectpayments/backend/routes/api/v1/callbacks/PostMercadoPagoCallbackRoute.kt index ee53954..37befde 100644 --- a/backend/src/main/kotlin/net/perfectdreams/perfectpayments/backend/routes/api/v1/callbacks/PostMercadoPagoCallbackRoute.kt +++ b/backend/src/main/kotlin/net/perfectdreams/perfectpayments/backend/routes/api/v1/callbacks/PostMercadoPagoCallbackRoute.kt @@ -32,7 +32,7 @@ class PostMercadoPagoCallbackRoute(val m: PerfectPayments) : BaseRoute("/api/v1/ logger.info { "MercadoPago type: $type, params: ${parameters.entries()}; body: $body" } val topic = parameters["topic"] - if (type != null) { + if (type == null) { logger.warn { "Ignoring MercadoPago request with type missing because maybe that's a IPN notification and we only care about webhooks..." } call.respondEmptyJson(HttpStatusCode.Forbidden) return