1. Go to this page and download the library: Download djlemmor/djpaykit-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
djlemmor / djpaykit-laravel example snippets
'admin_middleware' => ['api', 'auth'],
/*
* Requires an authenticated Sanctum user for administrator actions.
*/
'admin_middleware' => ['api', 'auth:sanctum'],
blade
{{-- Vite loads the JavaScript that registers the widget. --}}
@vite('resources/js/app.js')
<djpaykit-widget
api-url="{{ url('/api/djpaykit/payment-methods') }}"
order-reference="ORDER-1001"
amount="500.00"
currency="PHP"
></djpaykit-widget>