If you wish to edit something in the JavaScript/Sass files, you have to compile them with Laravel Mix.

From your terminal, cd into the payment directory and install the npm dependencies:

With npm:

npm install

Or the recommended way, with Yarn:


After you make your changes run npm run build to compile the assets.

Each time the assets are compiled you have to run

php artisan vendor:publish --provider="Botble\Payment\Providers\PaymentServiceProvider" --tag=assets --force

to override them in your public directory.

Or you edit the webpack.mix.js and change the publicPath variable:

const publicPath = './../public/vendor/payment'

Assuming that you have the payment folder in your project root directory.


If you wish to customize the views run:

php artisan vendor:publish --provider="Botble\Payment\Providers\PaymentServiceProvider" --tag=views --force

Then edit them from resources/views/vendor/payment.


php artisan vendor:publish --provider="Botble\Payment\Providers\PaymentServiceProvider" --tag=lang --force

{info} See Overriding Vendor Language Files.