Skip to content

Commit

Permalink
Whoops
Browse files Browse the repository at this point in the history
MrPowerGamerBR committed Apr 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 7354dbe commit c8d9acc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c8d9acc

Please sign in to comment.