Recommend this page to a friend! |
A beautiful Checkout example using Laravel supporting both Cash-in and Stripe Checkout with Best Coding practices.
git clone https://github.com/ManiruzzamanAkash/laravel-stripe-checkout.git
.env
fileCreate .env
file by copying .env.example
.env
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel_stripe_checkout
DB_USERNAME=root
DB_PASSWORD=
.env
To get this visit - https://dashboard.stripe.com/test/apikeys
STRIPE_PUBLIC_KEY=
STRIPE_SECRET_KEY=
cd laravel-stripe-checkout
composer install
npm i
npm run dev
php artisan migrate --seed
php artisan serve
and booom, visit http://localhost:8000
.
.
.
.
.
.
I'm Maniruzzaman Akash, Maintainer of this repo.
Yes, it's open and you can contribute too. If any question regarding this, email me at - manirujjamanakash@gmail.com.
Classes of Maniruzzaman Akash | > | Laravel Stripe Checkout | > | Download .zip .tar.gz | > | Support forum | > | Blog | > | Latest changes |
|
Groups | Applications | Files |
Groups |
PHP 5 | Classes using PHP 5 specific features | View top rated classes |
E-Commerce | Online stores, shopping baskets and payment methods | View top rated classes |
Libraries | Frameworks and libraries of cooperating classes | View top rated classes |
Web services | Web data clipping, SOAP or XML-RPC clients and servers | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Files |
File | Role | Description | ||
---|---|---|---|---|
app (9 directories) | ||||
bootstrap (1 file) | ||||
config (15 files) | ||||
database (3 directories) | ||||
lang (1 directory) | ||||
public (3 files, 3 directories) | ||||
resources (3 directories) | ||||
routes (5 files) | ||||
tests (3 files, 2 directories) | ||||
.editorconfig | Data | Auxiliary data | ||
.env.example | Data | Auxiliary data | ||
artisan | Class | Class source | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
package-lock.json | Data | Auxiliary data | ||
package.json | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
postcss.config.js | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
tailwind.config.js | Data | Auxiliary data | ||
vite.config.js | Data | Auxiliary data |
Files | / | app |
File | Role | Description | ||
---|---|---|---|---|
Abstracts (1 file) | ||||
Console (1 file) | ||||
Exceptions (2 files) | ||||
Http (1 file, 3 directories) | ||||
Interfaces (1 file) | ||||
Models (4 files) | ||||
Providers (5 files) | ||||
Repositories (2 files) | ||||
View (1 directory) |
Files | / | app | / | Exceptions |
File | Role | Description |
---|---|---|
Handler.php | Class | Class source |
InvalidProductJson.php | Class | Class source |
Files | / | app | / | Http |
File | Role | Description | ||
---|---|---|---|---|
Controllers (8 files, 1 directory) | ||||
Middleware (9 files) | ||||
Requests (1 file, 1 directory) | ||||
Kernel.php | Class | Class source |
Files | / | app | / | Http | / | Controllers |
File | Role | Description | ||
---|---|---|---|---|
Auth (9 files) | ||||
CartController.php | Class | Class source | ||
CheckoutController.php | Class | Class source | ||
Controller.php | Class | Class source | ||
OrderController.php | Class | Class source | ||
PaymentController.php | Class | Class source | ||
ProductController.php | Class | Class source | ||
ProfileController.php | Class | Class source | ||
StripeController.php | Class | Class source |
Files | / | app | / | Http | / | Controllers | / | Auth |
File | Role | Description |
---|---|---|
AuthenticatedSessionController.php | Class | Class source |
ConfirmablePasswordController.php | Class | Class source |
EmailVerificationN...ationController.php | Class | Class source |
EmailVerificationPromptController.php | Class | Class source |
NewPasswordController.php | Class | Class source |
PasswordController.php | Class | Class source |
PasswordResetLinkController.php | Class | Class source |
RegisteredUserController.php | Class | Class source |
VerifyEmailController.php | Class | Class source |
Files | / | app | / | Http | / | Middleware |
File | Role | Description |
---|---|---|
Authenticate.php | Class | Class source |
EncryptCookies.php | Class | Class source |
PreventRequestsDuringMaintenance.php | Class | Class source |
RedirectIfAuthenticated.php | Class | Class source |
TrimStrings.php | Class | Class source |
TrustHosts.php | Class | Class source |
TrustProxies.php | Class | Class source |
ValidateSignature.php | Class | Class source |
VerifyCsrfToken.php | Class | Class source |
Files | / | app | / | Http | / | Requests |
File | Role | Description | ||
---|---|---|---|---|
Auth (1 file) | ||||
ProfileUpdateRequest.php | Class | Class source |
Files | / | app | / | Models |
File | Role | Description |
---|---|---|
Order.php | Class | Class source |
OrderItem.php | Class | Class source |
Product.php | Class | Class source |
User.php | Class | Class source |
Files | / | app | / | Providers |
File | Role | Description |
---|---|---|
AppServiceProvider.php | Class | Class source |
AuthServiceProvider.php | Class | Class source |
BroadcastServiceProvider.php | Class | Class source |
EventServiceProvider.php | Class | Class source |
RouteServiceProvider.php | Class | Class source |
Files | / | app | / | Repositories |
File | Role | Description |
---|---|---|
OrderRepository.php | Class | Class source |
StripePaymentRepository.php | Class | Class source |
Files | / | app | / | View | / | Components |
File | Role | Description |
---|---|---|
AppLayout.php | Class | Class source |
GuestLayout.php | Class | Class source |
Files | / | config |
File | Role | Description |
---|---|---|
app.php | Class | Class source |
auth.php | Class | Class source |
broadcasting.php | Aux. | Auxiliary script |
cache.php | Aux. | Auxiliary script |
cors.php | Aux. | Auxiliary script |
database.php | Aux. | Auxiliary script |
filesystems.php | Aux. | Auxiliary script |
hashing.php | Aux. | Auxiliary script |
logging.php | Class | Class source |
mail.php | Aux. | Auxiliary script |
queue.php | Aux. | Auxiliary script |
sanctum.php | Class | Class source |
services.php | Aux. | Auxiliary script |
session.php | Aux. | Auxiliary script |
view.php | Aux. | Auxiliary script |
Files | / | database | / | factories |
File | Role | Description |
---|---|---|
ProductFactory.php | Class | Class source |
UserFactory.php | Class | Class source |
Files | / | database | / | migrations |
File | Role | Description |
---|---|---|
2014_10_12_000000_create_users_table.php | Class | Class source |
2014_10_12_100000_...rd_resets_table.php | Class | Class source |
2019_08_19_000000_...iled_jobs_table.php | Class | Class source |
2019_12_14_000001_...ss_tokens_table.php | Class | Class source |
2023_01_22_031306_..._products_table.php | Class | Class source |
2023_01_22_031437_...te_orders_table.php | Class | Class source |
2023_01_29_160522_...der_items_table.php | Class | Class source |
Files | / | lang | / | en |
File | Role | Description |
---|---|---|
auth.php | Aux. | Auxiliary script |
pagination.php | Aux. | Auxiliary script |
passwords.php | Aux. | Auxiliary script |
validation.php | Aux. | Auxiliary script |
Files | / | public |
Files | / | public | / | images | / | default |
File | Role | Description |
---|---|---|
cash-in.png | Data | Auxiliary data |
stripe-payments.png | Data | Auxiliary data |
Files | / | public | / | js |
File | Role | Description |
---|---|---|
cart.js | Data | Auxiliary data |
checkout.js | Data | Auxiliary data |
Files | / | resources | / | js |
File | Role | Description |
---|---|---|
app.js | Data | Auxiliary data |
bootstrap.js | Data | Auxiliary data |
Files | / | resources | / | views |
File | Role | Description | ||
---|---|---|---|---|
auth (6 files) | ||||
carts (1 file) | ||||
checkout (3 files) | ||||
components (13 files) | ||||
layouts (3 files) | ||||
products (1 file) | ||||
profile (1 file, 1 directory) | ||||
dashboard.blade.php | Aux. | Auxiliary script | ||
welcome.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / | auth |
File | Role | Description |
---|---|---|
confirm-password.blade.php | Aux. | Auxiliary script |
forgot-password.blade.php | Aux. | Auxiliary script |
login.blade.php | Aux. | Auxiliary script |
register.blade.php | Aux. | Auxiliary script |
reset-password.blade.php | Aux. | Auxiliary script |
verify-email.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / | checkout |
File | Role | Description |
---|---|---|
cancel.blade.php | Aux. | Auxiliary script |
index.blade.php | Aux. | Auxiliary script |
success.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / | components |
File | Role | Description |
---|---|---|
application-logo.blade.php | Aux. | Auxiliary script |
auth-session-status.blade.php | Aux. | Auxiliary script |
danger-button.blade.php | Aux. | Auxiliary script |
dropdown-link.blade.php | Aux. | Auxiliary script |
dropdown.blade.php | Aux. | Auxiliary script |
input-error.blade.php | Aux. | Auxiliary script |
input-label.blade.php | Aux. | Auxiliary script |
modal.blade.php | Aux. | Auxiliary script |
nav-link.blade.php | Aux. | Auxiliary script |
primary-button.blade.php | Aux. | Auxiliary script |
responsive-nav-link.blade.php | Aux. | Auxiliary script |
secondary-button.blade.php | Aux. | Auxiliary script |
text-input.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / | layouts |
File | Role | Description |
---|---|---|
app.blade.php | Aux. | Auxiliary script |
guest.blade.php | Aux. | Auxiliary script |
navigation.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / | profile |
File | Role | Description | ||
---|---|---|---|---|
partials (3 files) | ||||
edit.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / | profile | / | partials |
File | Role | Description |
---|---|---|
delete-user-form.blade.php | Aux. | Auxiliary script |
update-password-form.blade.php | Aux. | Auxiliary script |
update-profile-inf...tion-form.blade.php | Aux. | Auxiliary script |
Files | / | routes |
File | Role | Description |
---|---|---|
api.php | Example | Example script |
auth.php | Class | Class source |
channels.php | Example | Example script |
console.php | Example | Example script |
web.php | Class | Class source |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
Feature (2 files, 1 directory) | ||||
Unit (1 file) | ||||
CreatesApplication.php | Class | Class source | ||
Pest.php | Class | Class source | ||
TestCase.php | Class | Class source |
Files | / | tests | / | Feature |
File | Role | Description | ||
---|---|---|---|---|
Auth (6 files) | ||||
ExampleTest.php | Example | Example script | ||
ProfileTest.php | Example | Example script |
Files | / | tests | / | Feature | / | Auth |
File | Role | Description |
---|---|---|
AuthenticationTest.php | Example | Example script |
EmailVerificationTest.php | Class | Class source |
PasswordConfirmationTest.php | Example | Example script |
PasswordResetTest.php | Class | Class source |
PasswordUpdateTest.php | Example | Example script |
RegistrationTest.php | Example | Example script |
Download all files: laravel-stripe-check.tar.gz laravel-stripe-check.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|
Files |
File | Role | Description | ||
---|---|---|---|---|
app (9 directories) | ||||
bootstrap (1 file) | ||||
config (15 files) | ||||
database (3 directories) | ||||
lang (1 directory) | ||||
public (3 files, 3 directories) | ||||
resources (3 directories) | ||||
routes (5 files) | ||||
tests (3 files, 2 directories) | ||||
.editorconfig | Data | Auxiliary data | ||
.env.example | Data | Auxiliary data | ||
artisan | Class | Class source | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
package-lock.json | Data | Auxiliary data | ||
package.json | Data | Auxiliary data | ||
phpunit.xml | Data | Auxiliary data | ||
postcss.config.js | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
tailwind.config.js | Data | Auxiliary data | ||
vite.config.js | Data | Auxiliary data |
Files | / | app |
File | Role | Description | ||
---|---|---|---|---|
Abstracts (1 file) | ||||
Console (1 file) | ||||
Exceptions (2 files) | ||||
Http (1 file, 3 directories) | ||||
Interfaces (1 file) | ||||
Models (4 files) | ||||
Providers (5 files) | ||||
Repositories (2 files) | ||||
View (1 directory) |
Files | / | app | / | Exceptions |
File | Role | Description |
---|---|---|
Handler.php | Class | Class source |
InvalidProductJson.php | Class | Class source |
Files | / | app | / | Http |
File | Role | Description | ||
---|---|---|---|---|
Controllers (8 files, 1 directory) | ||||
Middleware (9 files) | ||||
Requests (1 file, 1 directory) | ||||
Kernel.php | Class | Class source |
Files | / | app | / | Http | / | Controllers |
File | Role | Description | ||
---|---|---|---|---|
Auth (9 files) | ||||
CartController.php | Class | Class source | ||
CheckoutController.php | Class | Class source | ||
Controller.php | Class | Class source | ||
OrderController.php | Class | Class source | ||
PaymentController.php | Class | Class source | ||
ProductController.php | Class | Class source | ||
ProfileController.php | Class | Class source | ||
StripeController.php | Class | Class source |
Files | / | app | / | Http | / | Controllers | / | Auth |
File | Role | Description |
---|---|---|
AuthenticatedSessionController.php | Class | Class source |
ConfirmablePasswordController.php | Class | Class source |
EmailVerificationN...ationController.php | Class | Class source |
EmailVerificationPromptController.php | Class | Class source |
NewPasswordController.php | Class | Class source |
PasswordController.php | Class | Class source |
PasswordResetLinkController.php | Class | Class source |
RegisteredUserController.php | Class | Class source |
VerifyEmailController.php | Class | Class source |
Files | / | app | / | Http | / | Middleware |
File | Role | Description |
---|---|---|
Authenticate.php | Class | Class source |
EncryptCookies.php | Class | Class source |
PreventRequestsDuringMaintenance.php | Class | Class source |
RedirectIfAuthenticated.php | Class | Class source |
TrimStrings.php | Class | Class source |
TrustHosts.php | Class | Class source |
TrustProxies.php | Class | Class source |
ValidateSignature.php | Class | Class source |
VerifyCsrfToken.php | Class | Class source |
Files | / | app | / | Http | / | Requests |
File | Role | Description | ||
---|---|---|---|---|
Auth (1 file) | ||||
ProfileUpdateRequest.php | Class | Class source |
Files | / | app | / | Models |
File | Role | Description |
---|---|---|
Order.php | Class | Class source |
OrderItem.php | Class | Class source |
Product.php | Class | Class source |
User.php | Class | Class source |
Files | / | app | / | Providers |
File | Role | Description |
---|---|---|
AppServiceProvider.php | Class | Class source |
AuthServiceProvider.php | Class | Class source |
BroadcastServiceProvider.php | Class | Class source |
EventServiceProvider.php | Class | Class source |
RouteServiceProvider.php | Class | Class source |
Files | / | app | / | Repositories |
File | Role | Description |
---|---|---|
OrderRepository.php | Class | Class source |
StripePaymentRepository.php | Class | Class source |
Files | / | app | / | View | / | Components |
File | Role | Description |
---|---|---|
AppLayout.php | Class | Class source |
GuestLayout.php | Class | Class source |
Files | / | config |
File | Role | Description |
---|---|---|
app.php | Class | Class source |
auth.php | Class | Class source |
broadcasting.php | Aux. | Auxiliary script |
cache.php | Aux. | Auxiliary script |
cors.php | Aux. | Auxiliary script |
database.php | Aux. | Auxiliary script |
filesystems.php | Aux. | Auxiliary script |
hashing.php | Aux. | Auxiliary script |
logging.php | Class | Class source |
mail.php | Aux. | Auxiliary script |
queue.php | Aux. | Auxiliary script |
sanctum.php | Class | Class source |
services.php | Aux. | Auxiliary script |
session.php | Aux. | Auxiliary script |
view.php | Aux. | Auxiliary script |
Files | / | database | / | factories |
File | Role | Description |
---|---|---|
ProductFactory.php | Class | Class source |
UserFactory.php | Class | Class source |
Files | / | database | / | migrations |
File | Role | Description |
---|---|---|
2014_10_12_000000_create_users_table.php | Class | Class source |
2014_10_12_100000_...rd_resets_table.php | Class | Class source |
2019_08_19_000000_...iled_jobs_table.php | Class | Class source |
2019_12_14_000001_...ss_tokens_table.php | Class | Class source |
2023_01_22_031306_..._products_table.php | Class | Class source |
2023_01_22_031437_...te_orders_table.php | Class | Class source |
2023_01_29_160522_...der_items_table.php | Class | Class source |
Files | / | lang | / | en |
File | Role | Description |
---|---|---|
auth.php | Aux. | Auxiliary script |
pagination.php | Aux. | Auxiliary script |
passwords.php | Aux. | Auxiliary script |
validation.php | Aux. | Auxiliary script |
Files | / | public |
Files | / | public | / | images | / | default |
File | Role | Description |
---|---|---|
cash-in.png | Data | Auxiliary data |
stripe-payments.png | Data | Auxiliary data |
Files | / | public | / | js |
File | Role | Description |
---|---|---|
cart.js | Data | Auxiliary data |
checkout.js | Data | Auxiliary data |
Files | / | resources | / | js |
File | Role | Description |
---|---|---|
app.js | Data | Auxiliary data |
bootstrap.js | Data | Auxiliary data |
Files | / | resources | / | views |
File | Role | Description | ||
---|---|---|---|---|
auth (6 files) | ||||
carts (1 file) | ||||
checkout (3 files) | ||||
components (13 files) | ||||
layouts (3 files) | ||||
products (1 file) | ||||
profile (1 file, 1 directory) | ||||
dashboard.blade.php | Aux. | Auxiliary script | ||
welcome.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / | auth |
File | Role | Description |
---|---|---|
confirm-password.blade.php | Aux. | Auxiliary script |
forgot-password.blade.php | Aux. | Auxiliary script |
login.blade.php | Aux. | Auxiliary script |
register.blade.php | Aux. | Auxiliary script |
reset-password.blade.php | Aux. | Auxiliary script |
verify-email.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / | checkout |
File | Role | Description |
---|---|---|
cancel.blade.php | Aux. | Auxiliary script |
index.blade.php | Aux. | Auxiliary script |
success.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / | components |
File | Role | Description |
---|---|---|
application-logo.blade.php | Aux. | Auxiliary script |
auth-session-status.blade.php | Aux. | Auxiliary script |
danger-button.blade.php | Aux. | Auxiliary script |
dropdown-link.blade.php | Aux. | Auxiliary script |
dropdown.blade.php | Aux. | Auxiliary script |
input-error.blade.php | Aux. | Auxiliary script |
input-label.blade.php | Aux. | Auxiliary script |
modal.blade.php | Aux. | Auxiliary script |
nav-link.blade.php | Aux. | Auxiliary script |
primary-button.blade.php | Aux. | Auxiliary script |
responsive-nav-link.blade.php | Aux. | Auxiliary script |
secondary-button.blade.php | Aux. | Auxiliary script |
text-input.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / | layouts |
File | Role | Description |
---|---|---|
app.blade.php | Aux. | Auxiliary script |
guest.blade.php | Aux. | Auxiliary script |
navigation.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / | profile |
File | Role | Description | ||
---|---|---|---|---|
partials (3 files) | ||||
edit.blade.php | Aux. | Auxiliary script |
Files | / | resources | / | views | / | profile | / | partials |
File | Role | Description |
---|---|---|
delete-user-form.blade.php | Aux. | Auxiliary script |
update-password-form.blade.php | Aux. | Auxiliary script |
update-profile-inf...tion-form.blade.php | Aux. | Auxiliary script |
Files | / | routes |
File | Role | Description |
---|---|---|
api.php | Example | Example script |
auth.php | Class | Class source |
channels.php | Example | Example script |
console.php | Example | Example script |
web.php | Class | Class source |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
Feature (2 files, 1 directory) | ||||
Unit (1 file) | ||||
CreatesApplication.php | Class | Class source | ||
Pest.php | Class | Class source | ||
TestCase.php | Class | Class source |
Files | / | tests | / | Feature |
File | Role | Description | ||
---|---|---|---|---|
Auth (6 files) | ||||
ExampleTest.php | Example | Example script | ||
ProfileTest.php | Example | Example script |
Files | / | tests | / | Feature | / | Auth |
File | Role | Description |
---|---|---|
AuthenticationTest.php | Example | Example script |
EmailVerificationTest.php | Class | Class source |
PasswordConfirmationTest.php | Example | Example script |
PasswordResetTest.php | Class | Class source |
PasswordUpdateTest.php | Example | Example script |
RegistrationTest.php | Example | Example script |
Download all files: laravel-stripe-check.tar.gz laravel-stripe-check.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|