backend-manager 5.0.111 → 5.0.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
14
14
|
- `Fixed` for any bug fixes.
|
|
15
15
|
- `Security` in case of vulnerabilities.
|
|
16
16
|
|
|
17
|
+
# [5.0.111] - 2026-03-05
|
|
18
|
+
### Changed
|
|
19
|
+
- PayPal client ID is now read from `backend-manager-config.json` (`payment.processors.paypal.clientId`) instead of requiring a `PAYPAL_CLIENT_ID` environment variable.
|
|
20
|
+
- PayPal auth now auto-detects sandbox vs live environment by trying both endpoints in parallel on first auth, with live taking priority.
|
|
21
|
+
|
|
17
22
|
# [5.0.109] - 2026-03-04
|
|
18
23
|
### Added
|
|
19
24
|
- Immediate trial cancellation: cancelling during a free trial now terminates the subscription instantly instead of scheduling cancel at period end, preventing free premium access for the remainder of the trial.
|
package/package.json
CHANGED
|
@@ -313,8 +313,10 @@ const PayPal = {
|
|
|
313
313
|
throw new Error(`No price configured for ${product.id}/${frequency}`);
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
// Fetch plans
|
|
317
|
-
const response = await this.request(`/v1/billing/plans?product_id=${paypalProductId}&page_size=20&total_required=true
|
|
316
|
+
// Fetch plans with full details (Prefer header includes billing_cycles in list response)
|
|
317
|
+
const response = await this.request(`/v1/billing/plans?product_id=${paypalProductId}&page_size=20&total_required=true`, {
|
|
318
|
+
headers: { 'Prefer': 'return=representation' },
|
|
319
|
+
});
|
|
318
320
|
const plans = response.plans || [];
|
|
319
321
|
|
|
320
322
|
// Map frequency to PayPal interval unit
|