Skip to content

atomjoy/stripe-laravel

Repository files navigation

Stripe Laravel Cashier

Install laravel cashier first, and run migrations. Download and copy to laravel application directory. For local domain app.xx enable https on server (for stripejs).

Stripe weebhook secret

stripe listen

Keys

.env

STRIPE_KEY=
STRIPE_SECRET=
STRIPE_WEBHOOK_SECRET=

CASHIER_CURRENCY=pln
CASHIER_CURRENCY_LOCALE=pl_PL

Create your domain webhook

https://dashboard.stripe.com/test/webhooks

<?php
// Webhook url return http tatus 200 for tests
// https://example.com/stripe/webhook.php

echo "OK";

Strip routes

/routes/stripe/routes.php

Stripe custom checkout (stripe.js)

Shop page custom checkout example with Web Elements

/stripe/custom-payment

Capture checkout payment

/stripe/custom-payment/capture/{pi_3PFM...}

Strip payment

Donation example

/stripe/charge

Subscription example

/stripe/charge

Cashier payment

Cashier checkout example

/checkout

Docs

Screen