Skip to content

Commit 8b3758e

Browse files
Update dependency stripe to v22.1.1 (#1752)
* Update dependency stripe to v22.1.1 * Include managed_payments in Stripe tests Required as part of stripe@22.1.1 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Paul Davis <PaulAdamDavis@users.noreply.github.com>
1 parent 529a2c3 commit 8b3758e

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

packages/mg-stripe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@
4949
"@tryghost/pretty-cli": "3.0.3",
5050
"chalk": "5.6.2",
5151
"ora": "9.4.0",
52-
"stripe": "22.0.2"
52+
"stripe": "22.1.1"
5353
}
5454
}

packages/mg-stripe/src/lib/StripeAPI.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class StripeAPI {
1818
constructor({apiKey}: {apiKey: string}) {
1919
this.#apiKey = apiKey;
2020
this.#client = new Stripe(apiKey, {
21-
apiVersion: '2026-03-25.dahlia',
21+
apiVersion: '2026-04-22.dahlia',
2222
telemetry: false
2323
});
2424
this.mode = apiKey.includes('_test_') ? 'test' : 'live';

packages/mg-stripe/src/test/utils/stripe.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export function buildSubscription(overrides: Partial<Omit<Stripe.Subscription, '
240240
quantity: 1
241241
};
242242
});
243-
const {current_period_start: _cps, current_period_end: _cpe, ...restOverrides} = overrides;
243+
const {current_period_start: _cps, current_period_end: _cpe, managed_payments: managedPayments, ...restOverrides} = overrides;
244244
return {
245245
id,
246246
object: 'subscription',
@@ -285,6 +285,7 @@ export function buildSubscription(overrides: Partial<Omit<Stripe.Subscription, '
285285
trial_settings: null,
286286
trial_start: null,
287287
...restOverrides,
288+
managed_payments: managedPayments ?? null,
288289
items: {
289290
object: 'list',
290291
has_more: false,

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)