Download the PHP package astral-php/astral-paypal without Composer
On this page you can find all versions of the php package astral-php/astral-paypal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download astral-php/astral-paypal
More information about astral-php/astral-paypal
Files in astral-php/astral-paypal
Package astral-paypal
Short Description Paiement PayPal pour Astral — Orders API v2, capture, webhooks, remboursements
License MIT
Homepage https://github.com/astral-php/astral-paypal
Informations about the package astral-paypal
astral-php/astral-paypal
Paiement PayPal pour Astral — Orders API v2 (create → approve → capture), webhooks, remboursements.
Statut : 0.1.0 — MVP sandbox. Package dédié (option A), miroir conceptuel de
astral-payment(Stripe).
UX MVP = redirect vers le lienapprove(JS Buttons = backlog).
Installation
1. ServiceProvider — config/dependencies.php
2. Variables d’environnement
Copier stubs/.env.paypal.example :
Clés : Developer Dashboard → Apps & Credentials → Sandbox.
3. Usage
4. Webhook
Endpoint shop typique : POST /webhooks/paypal (sans CSRF).
5. Remboursement
Événements
| Classe | Quand |
|---|---|
AstralPaypal\Events\PaymentSucceeded |
Capture OK (shop peut dispatcher) |
AstralPaypal\Events\PaymentFailed |
Échec / annulation |
AstralPaypal\Events\PaymentRefunded |
Refund API OK |
Le package ne branche pas automatiquement les mails / stock : l’app hôte écoute ou appelle ses services (comme pour Stripe côté shop).
Tests
Hors scope 0.1
- PayPal JS Buttons / Pay Later / Venmo
- Abonnements
- Marketplace Platforms
Licence
MIT