Skip to content

Commit ae1b658

Browse files
committed
Release 2.1.0
1 parent 3ddf40a commit ae1b658

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,32 @@
22

33
All notable changes to `donation-checkout` will be documented in this file.
44

5+
## 2.1.0
6+
7+
### Breaking Changes
8+
9+
- Removed `PaymentService` class. Replaced with single-action classes: `CreateStripeCustomer`, `CreateSingleDonation`, `CreateRecurringDonation`.
10+
- Re-enabled CSRF protection on the donation endpoint. Ensure your layout includes `<meta name="csrf-token" content="{{ csrf_token }}">`.
11+
- Amount validation now requires integers. Decimal values (e.g. 10.5) are rejected.
12+
- Frequency validation now only accepts `single` or `recurring`.
13+
14+
### Fixed
15+
16+
- `UserService::updateUser` now merges data instead of replacing all user data. Previously, updating `stripe_customer_id` would wipe `first_name` and `last_name`.
17+
- Config publishing now works correctly. The `donation-checkout-config` publish tag was referenced but never registered.
18+
19+
### Added
20+
21+
- `{{ donation:styles }}` tag for optional default CSS styles.
22+
- Rate limiting (10 requests/minute) on the donation endpoint.
23+
- `StripeClient` instance injection via service container (replaces static `Stripe::setApiKey`).
24+
- Hidden frequency input and `max` attribute on amount input for progressive enhancement.
25+
- Full test suite with 34 tests covering validation, actions, services, and controller integration.
26+
- Orchestra Testbench for Laravel testing support.
27+
- Rector configuration for automated code quality improvements.
28+
- Pint configuration with Laravel preset.
29+
30+
### Removed
31+
32+
- Dead `getCustomer` method from the old `PaymentService`.
33+
- CSRF middleware exclusion (no longer needed).

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ghijk/donation-checkout",
33
"license": "proprietary",
4-
"version": "2.0.0",
4+
"version": "2.1.0",
55
"authors": [
66
{
77
"name": "Steven Grant",

0 commit comments

Comments
 (0)