Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bilalbasheer's avatar

Razorpay Checkout Not Loading in Laravel Filament Custom View Field

I am trying to integrate Razorpay's checkout button into a custom view field in my Laravel Filament application. The Razorpay button and script work perfectly on a standalone Blade file but do not function as expected when added to a Filament custom view field.

Here is the code I am using:

Custom Blade View (razorpay-button.blade.php):

use Filament\Forms\Components\ViewField;

ViewField::make('razorpay_button')
    ->view('components.razorpay-button'),

Adding the View Field in Filament Form

things are tried

Checked for JavaScript errors in the browser console—none are present.

0 likes
0 replies

Please or to participate in this conversation.