Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Stripe Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-stripe-knowledge-patch)
---
name: stripe-knowledge-patch
description: Stripe
version: null
license: MIT
metadata:
author: Nevaberry
---
# Stripe integration compatibility
Load this skill when upgrading Stripe integrations or working on the API,
Checkout, Billing, Connect, webhooks, or the Node and Python SDKs.
Use the topic references for complete contracts, examples, and version-specific
guidance. Public and private preview qualifications appear beside the relevant
features.
## Reference index
| Reference | Topics |
| --- | --- |
| [Billing](references/billing.md) | Subscription migration, discounts, schedules, trials, invoices, meters, credit grants |
| [Checkout and payments](references/checkout-and-payments.md) | Browser Elements, Sessions, Payment Links, payment methods, line items, records, refunds |
| [Connect and accounts](references/connect-and-accounts.md) | Accounts v2, verification, balances, payouts, reserves, Treasury, Financial Connections |
| [Events and releases](references/events-and-releases.md) | API release policy, event formats, Java handlers, destinations, retention, apps, sandboxes |
| [Node SDK](references/node-sdk.md) | Runtime requirements, API pins, types, numeric precision, webhook verification, context, pagination, resource migrations |
| [Python SDK](references/python-sdk.md) | Installation, service access, imports, async transport, webhooks, mapping and decimal migrations |
| [Terminal, Issuing, Tax, and risk](references/terminal-issuing-tax-and-risk.md) | Reader configuration, card controls, authorizations, tax registrations, Radar, disputes |
## Breaking changes and deprecations
### Checkout and browser initialization
`redirectToCheckout` is removed; for hosted Checkout, navigate to the Session URL.
Clover makes `initCheckout` synchronous. Starting with March Dahlia, migrate
`initCheckout` to `initCheckoutElements` and `initEmbeddedCheckout` to
`createEmbeddedCheckoutPage`. Await `elements.update()` before dependent work.
Migrate boolean `options.layout.radios` settings to the Dahlia radio layout values.
### Checkout response and lifecycle changes
Subscription-mode Checkout creates the subscription only after payment completes;
defer dependent work until then. Sessions remove top-level `shipping_details`.
In Node 18.0.0, read `session.collected_information.shipping_details`; that nested
type drops `carrier`, `phone`, and `tracking_number`.
Replace Checkout `currency_conversion` reads with `presentment_details`.
### Payment method allowlists
Endive removes `payment_method_types` from Checkout Session creation, PaymentIntent
creation, update, and confirmation, and SetupIntent creation and update.
Use `allowed_payment_method_types: ['card']` for a card-only allowlist; Intent
allowlist types also handle `card_present` and `interac_present`.
On PaymentIntents and SetupIntents, the API silently filters the allowlist for
compatibility with the amount, currency, and customer context.
### Billing migrations
Migrate legacy usage-based subscriptions to Billing Meters and report meter events
before upgrading to Basil. Discount coupons must have a specified end time.
Move affected singular `coupon` and `promotion_code` inputs to stackable discounts.
Promotion Codes reference coupons through a polymorphic promotion field; Discount
objects replace `coupon` with `source`.
Subscription Schedules remove `iterations`; phase end-date calculations now
account for billing cycle anchor changes.
### Invoice models and payment references
Invoice Items and Invoice Line Items replace top-level price fields with a pricing
model. Invoices, Invoice Line Items, and Credit Note Line Items replace top-level
tax fields with a new tax model. An invoice can receive multiple partial payments.
Node 18.0.0 removes `Charge.invoice`, `PaymentIntent.invoice`, and
`Invoice.payment_intent`; use `Invoice.payments` or `InvoicePayment` objects and
`Invoice.confirmation_secret` for the invoice's client secret.
### Capture and saved-card consent
Basil removes manual capture for Interac card-present payments; use automatic
capture. Handle partial capture and payment cancellation without expecting a
Refund object from either operation.
When saving a card with Terminal, migrate the customer-consent flag to the required
`allow_redisplay` setting. Submitted stablecoin payments can enter `processing`;
wait for payment success before fulfilling the order.
### Removed request and response fields
Remove `total_count` expansion from list requests and `page` from event destination
requests. Endive Financial Connections Session requests use `filters.country`;
remove `filters.countries` from create requests and response readers.
Remove `configurations` from the Accounts v2 link `account_onboarding` and
`account_update` use cases in requests and response readers.
### Node runtime and type migration
Node SDK 23.0.0 requires Node.js 20 or later. Remove `object`, `has_more`, and `url`
reads from `V2List<T>` and use operation-specific v2 request address types.
After removal of the top-level `ErrorType` export, use the client's `.errors` for
type and value access. Enums marked with `OtherString` need a fallback because
the API can return strings outside the listed literals.
### Node numeric and date-time values
In Node 21.0.0, `decimal_string` fields use `Stripe.Decimal` in requests and
responses across both API versions. Construct values from strings and use
`.toString()` for text storage. Preserve precision for v2 64-bit integers encoded
as strings. For Node 23.2.0 v2 date-time range filters, pass RFC 3339 strings;
the SDK retains numeric bound types for compatibility, but the API rejects them.
### Python service, import, and object migration
Python SDK 15.0.0 requires Python 3.9 or later. Use `client.v1` services; direct
accessors such as `client.customers` are deprecated in 13.0.0.
In 15.0.0, `StripeObject` drops `dict` inheritance and `.get()`, `.items()`, and
`.update()`. Use `obj.to_dict()` for a recursively converted dictionary copy,
`key in obj` for membership, and `obj[key] = value` or attribute assignment to
write to the live object. Fields declared `decimal_string` use `decimal.Decimal`.
See the Python reference for removed import shims and shared `stripe.params` types.
### Webhook parser migrations
Node 19.0.0 replaces `parseThinEvent()` with `parseEventNotification()`;
Python 13.0.0 replaces `parse_thin_event` with `client.parse_event_notification`.
Node 21.0.0 and Python 15.0.0 reject payloads sent to the wrong format's parser.
Use `stripe.webhooks.constructEvent(payload, signature, secret)` or
`stripe.Webhook.construct_event` for snapshots, and the notification parser for
thin notifications.
### Node signature verification
Node 22.6.2 rejects empty signing secrets; 23.0.1 also rejects secrets made entirely
of ASCII whitespace. In 23.0.0, omitted `tolerance` on
`stripe.webhooks.signature.verifyHeader()` or `verifyHeaderAsync()` applies
`Webhook.DEFAULT_TOLERANCE`; `stripe.webhooks.constructEvent(payload, signature, secret, 0)`
skips timestamp tolerance checking. After independently verifying a payload,
replace `Stripe.constructEventWithoutVerification()` with
`stripe.webhooks.constructEventWithoutVerification(payload)`.
## Common integration tasks
### Flexible billing and subscription schedules
New subscriptions on `2025-09-30.clover` default to flexible mode; choose classic explicitly
if the integration depends on classic lifecycle behavior. Flexible migration is
one-way and applies only to new activity; pending proration Invoice Items retain
their amounts. Use the migrate API for subscriptions with an active schedule.
For schedule creation with `from_subscription`, omit `billing_mode` to inherit it
and avoid a request error. See Billing for Dashboard defaults and proration options.
### Billing credits
Grants apply to subscription items with metered prices reporting through Billing
Meters. At finalization, currency must match, balance must be available, and
`period_end` must be at or after `effective_at` and strictly before `expires_at`
when set. Credits apply after discounts, before taxes and `invoice_credit_balance`.
Finalization consumes credits; competing drafts can show the same credits.
Restoring credits after a credit note requires a new grant. See Billing for grant
ordering, expiration, voiding, and the limit of 100 unused grants per customer.
### PaymentIntent line items
Send up to 200 lines in `amount_details.line_items`, each with `product_name`,
nonnegative integer `unit_cost` in minor currency units, and positive integer
`quantity`. Expand `amount_details.line_items` to read its `.data` response list.
For `paypal`, supply lines by confirmation. For card and `paypal` payments, omit
lines when sending lodging, car rental, or airline metadata.
Choose payment-level or per-line fields separately for tax and discount.
Arithmetic must reconcile or the request returns HTTP 400; bypassing validation
does not preserve enhanced-data qualification for card line items with arithmetic errors.
### Accounts v2 configurations and interoperability
Use `configuration.merchant` for payment acceptance and `configuration.recipient`
for transfers; `stripe_balance.stripe_transfers` is required for indirect charges.
Populated fields can return `null` until requested with `include`; include
`requirements` on create to see default requirements. Set `configuration.customer`
and send `customer_account=acct_…` on customer-facing requests.
Keep Accounts v1 for connected-account OAuth, recipient service agreements, and
capabilities such as `treasury`, `card_issuing_*`, and `legacy_payments`.
### Event formats, access, and retention
Thin payloads are unversioned and identify related objects by ID. Thin delivery
for API v1 resources requires private-preview access. Snapshots can be generated
by v1 and v2 endpoints; Accounts v2 integrations may need both formats.
Restricted keys need Read access to the underlying resource to retrieve events.
The v2 Events Retrieve and List APIs return full payloads for the past 30 days.
See Events for Workbench retention, resend windows, and destination limits.
### Request context and asynchronous Python calls
In Node 19.0.0, omit `stripeAccount` when using `stripeContext` to avoid sending
both headers. Node 23.2.0 notification fetch helpers apply notification context
for notifications returned by `events.retrieve()` or `events.list()`.
Use Python 13.1.1 or later to preserve `Stripe-Context` on subsequent list pages.
Starting in Python 13.0.1, install async dependencies with `pip install 'stripe[async]'`;
read async quote PDF bodies with `await response.read_async()`.
### Subscription pause, trials, and prebilling
September Endive exposes `Subscription.pause`, invoice preview
`subscription_details.pause`, resume `payment_behavior`, and schedule `pause_schedules`.
October Endive also accepts `schedule_details.pause_schedules` in invoice previews.
For subscription prebilling, specify billing schedules on creation, update, or
preview; in the public preview, explicitly include `billed_until` when needed.
The Billing reference retains public-preview Trial Offer guidance alongside
Endive's create, update, `current_trial`, and billing anchor contracts.