PHP code example of webrteu / stripe
1. Go to this page and download the library: Download webrteu/stripe 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/ */
webrteu / stripe example snippets
// Pentru Laravel 11+ (bootstrap/app.php):
->withMiddleware(function (Middleware $middleware) {
$middleware->validateCsrfTokens(except: [
'stripe/webhook',
]);
})
// Pentru versiuni sub Laravel 11 (app/Http/Middleware/VerifyCsrfToken.php):
protected $except = [
'/stripe/webhook',
];
bash
php artisan vendor:publish --tag=stripe-config