Releases: 1stevengrant/donation-checkout
Releases · 1stevengrant/donation-checkout
v2.1.0
Changelog
All notable changes to donation-checkout will be documented in this file.
2.1.0
Breaking Changes
- Removed
PaymentServiceclass. Replaced with single-action classes:CreateStripeCustomer,CreateSingleDonation,CreateRecurringDonation. - Re-enabled CSRF protection on the donation endpoint. Ensure your layout includes
<meta name="csrf-token" content="{{ csrf_token }}">. - Amount validation now requires integers. Decimal values (e.g. 10.5) are rejected.
- Frequency validation now only accepts
singleorrecurring.
Fixed
UserService::updateUsernow merges data instead of replacing all user data. Previously, updatingstripe_customer_idwould wipefirst_nameandlast_name.- Config publishing now works correctly. The
donation-checkout-configpublish tag was referenced but never registered.
Added
{{ donation:styles }}tag for optional default CSS styles.- Rate limiting (10 requests/minute) on the donation endpoint.
StripeClientinstance injection via service container (replaces staticStripe::setApiKey).- Hidden frequency input and
maxattribute on amount input for progressive enhancement. - Full test suite with 34 tests covering validation, actions, services, and controller integration.
- Orchestra Testbench for Laravel testing support.
- Rector configuration for automated code quality improvements.
- Pint configuration with Laravel preset.
Removed
- Dead
getCustomermethod from the oldPaymentService. - CSRF middleware exclusion (no longer needed).
v1.0
update the readme