diff --git a/app/Http/Requests/Request.php b/app/Http/Requests/Request.php index 7a8c300ecb2b..281490e37ed3 100644 --- a/app/Http/Requests/Request.php +++ b/app/Http/Requests/Request.php @@ -124,6 +124,10 @@ class Request extends FormRequest $input['company_gateway_id'] = $this->decodePrimaryKey($input['company_gateway_id']); } + if (array_key_exists('transaction_id', $input) && is_string($input['transaction_id'])) { + $input['transaction_id'] = $this->decodePrimaryKey($input['transaction_id']); + } + if (array_key_exists('category_id', $input) && is_string($input['category_id'])) { $input['category_id'] = $this->decodePrimaryKey($input['category_id']); } diff --git a/app/PaymentDrivers/StripePaymentDriver.php b/app/PaymentDrivers/StripePaymentDriver.php index cfe1b57a6c65..f714c7f095e1 100644 --- a/app/PaymentDrivers/StripePaymentDriver.php +++ b/app/PaymentDrivers/StripePaymentDriver.php @@ -52,7 +52,6 @@ use App\PaymentDrivers\Stripe\PRZELEWY24; use App\PaymentDrivers\Stripe\BankTransfer; use App\PaymentDrivers\Stripe\Connect\Verify; use App\PaymentDrivers\Stripe\ImportCustomers; -use App\PaymentDrivers\Stripe\UpdatePaymentMethods; use App\Http\Requests\Payments\PaymentWebhookRequest; use Laracasts\Presenter\Exceptions\PresenterException; use App\PaymentDrivers\Stripe\Jobs\PaymentIntentWebhook;