Download the PHP package astral-php/astral-payment without Composer
On this page you can find all versions of the php package astral-php/astral-payment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download astral-php/astral-payment
More information about astral-php/astral-payment
Files in astral-php/astral-payment
Package astral-payment
Short Description Intégration Stripe pour Astral — PaymentIntent, webhooks, events, remboursements
License MIT
Homepage https://github.com/astral-php/astral-payment
Informations about the package astral-payment
astral-php/astral-payment
Intégration Stripe pour Astral — PaymentIntent, webhooks, events, remboursements.
Prérequis
| Dépendance | Version |
|---|---|
| PHP | ^8.1 |
| astral-php/astral-core | ^1.2 |
| stripe/stripe-php | ^13+ |
| Compte Stripe | stripe.com |
Installation
1. Variables d'environnement
Copier stubs/.env.payment.example dans votre .env :
2. Service provider
Dans config/dependencies.php :
3. Migrations
Copier stubs/database/migrations/* vers database/migrations/, puis :
4. Routes
Fusionner stubs/config/routes.payment.php dans config/routes.php
(checkout sous AuthMiddleware, webhook sans CSRF).
5. Vue + JS
stubs/views/payment/checkout.php→views/payment/stubs/resources/js/stripe-checkout.js→resources/js/(si astral-vite)npm install @stripe/stripe-js
Usage rapide
Flux : checkout → Stripe Elements → webhook payment_intent.succeeded →
events PaymentSucceeded / PaymentFailed.
Structure
Tests
Suite obligatoire avant publication (helpers, models, events, listeners, middleware).
Compatibilité
| astral-core | PHP | astral-payment |
|---|---|---|
| ^1.2 | 8.1 → 8.4 | 0.x |
Licence
MIT — voir LICENSE
All versions of astral-payment with dependencies
astral-php/astral-core Version ^2.1
stripe/stripe-php Version ^13.0 || ^14.0 || ^15.0 || ^16.0