Download the PHP package gusmanwidodo/laravel-billing-stripe without Composer
On this page you can find all versions of the php package gusmanwidodo/laravel-billing-stripe. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gusmanwidodo/laravel-billing-stripe
More information about gusmanwidodo/laravel-billing-stripe
Files in gusmanwidodo/laravel-billing-stripe
Package laravel-billing-stripe
Short Description Stripe payment provider for gusmanwidodo/laravel-billing. Implements the PaymentProvider contract: Checkout Session charge, Stripe-Signature webhook verification, event mapping, and refund.
License MIT
Homepage https://github.com/gusmanwidodo/laravel-billing-stripe
Informations about the package laravel-billing-stripe
Laravel Billing — Stripe
Stripe payment provider for
gusmanwidodo/laravel-billing.
Implements the billing PaymentProvider contract using Stripe Checkout, so you
can charge invoices via a hosted Checkout page and settle them from verified
webhooks.
Features
- Checkout charge — creates a Checkout Session and returns its hosted URL.
- Webhook verification — validates the
Stripe-Signatureheader (t=<ts>,v1=<HMAC-SHA256(ts + "." + payload, whsec)>) with a timestamp tolerance to reject replays. - Event mapping —
checkout.session.completed(paid) /payment_intent.succeeded→ succeeded,expired→ canceled,payment_failed→ failed,charge.refunded→ refunded. - Refund — creates a refund for the session's payment intent.
- Auto-registers itself into laravel-billing's provider registry.
Requirements
- PHP
^8.3 gusmanwidodo/laravel-billing^0.4- Laravel 12
- A Stripe account (secret key + webhook signing secret)
Installation
Usage
On a verified checkout.session.completed (payment_status paid) event, a real
Payment is recorded and the invoice becomes paid. Settlement is idempotent,
keyed by the Checkout Session id (the intent's external_id).
Amounts
Stripe's unit_amount is the smallest currency unit (cents) — the same as
laravel-billing's integer minor units — so amounts pass through directly, no
conversion needed.
Security
Signature verification is mandatory and includes replay protection:
Billing::handleWebhook('stripe', ...) throws if the HMAC-SHA256 signature does
not match or the timestamp is outside signature_tolerance (default 300s), so a
forged, tampered, or replayed notification never records a payment.
Testing
License
MIT © Gusman Widodo. See LICENSE.
All versions of laravel-billing-stripe with dependencies
gusmanwidodo/laravel-billing Version ^0.4
illuminate/http Version ^12.0
illuminate/support Version ^12.0