From 438f077ea522a022b308ae37ec5639e738b5ac9f Mon Sep 17 00:00:00 2001 From: Georgy Yuriev Date: Wed, 31 Jul 2024 20:25:53 +0500 Subject: [PATCH] Fix: replace deprecated Request#[] with request.params[] --- app/models/stripe/event_dispatch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/stripe/event_dispatch.rb b/app/models/stripe/event_dispatch.rb index f83b4c42..1fc61162 100644 --- a/app/models/stripe/event_dispatch.rb +++ b/app/models/stripe/event_dispatch.rb @@ -8,7 +8,7 @@ def dispatch_stripe_event(request) end def retrieve_stripe_event(request) - id = request['id'] + id = request.params['id'] body = request.body.read sig_header = request.headers['HTTP_STRIPE_SIGNATURE'] endpoint_secrets = ::Rails.application.config.stripe.signing_secrets