Skip to content
Back to skills

Stripe Knowledge Patch

ASecurity

Stripe

  • 25 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
developmentpythonjavanodeapi

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill stripe-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Stripe Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Stripe Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-stripe-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-stripe-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: stripe-knowledge-patch
description: Stripe
version: null
license: MIT
metadata:
  author: Nevaberry
---


# Stripe Compatibility Guidance

Use this skill when implementing or migrating Stripe payments, Checkout,
Billing, Connect, event destinations, Terminal, Issuing, Tax, or Node and
Python SDK integrations. Load the relevant reference for detailed contracts,
examples, and source links. Public and private preview qualifications apply
to the features that carry them in the references.

## Reference index

| Reference | Topics |
| --- | --- |
| [billing.md](references/billing.md) | Meters, credit grants, discounts, flexible billing, subscriptions, schedules, invoices, portal controls, reporting |
| [checkout-and-payments.md](references/checkout-and-payments.md) | Browser SDK migrations, Checkout, Payment Links, method selection, PaymentIntent line items, Payment Records, refunds |
| [connect-and-accounts.md](references/connect-and-accounts.md) | Accounts v2, verification, capabilities, account links, balances, reserves, Financial Connections, Treasury, Money Management |
| [events-and-releases.md](references/events-and-releases.md) | API release policy, SDK compatibility, event formats, Java handlers, permissions, retention, destination limits, Activity Logs |
| [node-sdk.md](references/node-sdk.md) | Node runtime and API pins, types, decimals, webhook verification, context, pagination, transport, resource bindings |
| [python-sdk.md](references/python-sdk.md) | Python runtime and API pins, service access, imports, mapping migration, decimals, async transport, notifications, resource bindings |
| [terminal-issuing-tax-and-risk.md](references/terminal-issuing-tax-and-risk.md) | Terminal readers, consent and capture, Issuing controls, disputes, 3D Secure, Radar, tax collection and registrations |

## Breaking changes: Checkout and payment requests

- `redirectToCheckout` is removed; for hosted Checkout, navigate the browser
  to the Session URL. Starting with March Dahlia, migrate `initCheckout` to
  `initCheckoutElements` and `initEmbeddedCheckout` to `createEmbeddedCheckoutPage`.
- `elements.update()` returns a Promise. Await it before running code that
  depends on the new configuration. Migrate boolean `options.layout.radios`
  settings to the Dahlia radio layout values.
- Checkout Sessions remove the top-level `shipping_details` field. With Node
  SDK 18.0.0, read the address and name from `session.collected_information.shipping_details`;
  the nested type drops `carrier`, `phone`, and `tracking_number`.
- Checkout Sessions remove `currency_conversion`. Read `presentment_details`
  for the amount and currency presented in an Adaptive Pricing Session.
- Subscription-mode Checkout creates the subscription only after the customer
  completes payment. Defer work that depends on the subscription until then.
- Checkout and the Payment Element stop collecting card postal codes
  automatically in Canada, the United Kingdom, and Puerto Rico. Collect them
  explicitly if your workflow requires them.
- Endive removes `payment_method_types` from Checkout Session creation,
  PaymentIntent creation, update, and confirmation, and SetupIntent creation
  and update. Pass `allowed_payment_method_types: ['card']` for a card-only allowlist.
- Use automatic capture for Interac card-present payments. Handle partial
  capture and payment cancellation without expecting a Refund object.

See [Checkout and Payments](references/checkout-and-payments.md) and
[Terminal capture](references/terminal-issuing-tax-and-risk.md).

## Breaking changes: Billing resource contracts

- Migrate legacy usage-based subscriptions to Billing Meters and report usage
  through meter events before upgrading.
- Discount coupons must have a specified end time. Migrate affected singular
  `coupon` and `promotion_code` inputs to the stackable discounts input.
- Promotion Codes reference coupons through a polymorphic promotion field.
  Discount objects replace `coupon` with `source`.
- 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 their top-level tax fields with a new tax model.
- In Node SDK 18.0.0, `Charge.invoice`, `PaymentIntent.invoice`, and
  `Invoice.payment_intent` are removed. Read `Invoice.payments` or list or
  retrieve `InvoicePayment`; use `Invoice.confirmation_secret` for the invoice's client secret.
- In Node SDK 18.0.0, `current_period_start` and `current_period_end` move to
  `SubscriptionItem`. Clover removes the Subscription Schedule `iterations` parameter.
- New subscriptions on Clover default to flexible billing mode. Choose classic
  mode explicitly on creation if your integration depends on classic lifecycle behavior.

See [Billing](references/billing.md) and [Node bindings](references/node-sdk.md).

## Breaking changes: SDK types, runtime, and request serialization

- Node SDK 23.0.0 requires Node.js 20 or later. Python SDK 15.0.0 requires
  Python 3.9 or later.
- Node SDK 21.0.0 uses `Stripe.Decimal` for `decimal_string` fields in requests
  and responses across both API versions. Construct values from strings and
  use `.toString()` when writing them to text storage. Python SDK 15.0.0 uses
  `decimal.Decimal` for the corresponding fields.
- Python SDK 15.0.0 removes `dict` inheritance and methods such as `.get()`,
  `.items()`, and `.update()` from `StripeObject`. Use `obj.to_dict()` for a
  recursively converted copy, `key in obj` for membership, and `obj[key] = value`
  or attribute assignment to write to the live object.
- Use `client.v1` for Python v1 services; direct accessors such as
  `client.customers` are deprecated in 13.0.0. Explicit parameter types move to
  `stripe.params`; use 13.0.1 or later for nested imports such as
  `from stripe.params.checkout import SessionCreateParamsDiscount`.
- Node v23 removes `object`, `has_more`, and `url` from `V2List<T>` and the
  top-level `ErrorType` export. Use the client's `.errors` for type and value access.
- For API v2 date-time range filters, pass RFC 3339 strings such as
  `2026-11-18T00:00:00Z`. The Node SDK retains numeric bound types for compatibility,
  but the API rejects numeric bounds.
- Node SDK 22.4.0 marks non-exhaustive string enums with `OtherString`.
  Keep a fallback because the API can return strings outside the listed literals.

See [Node SDK](references/node-sdk.md) and [Python SDK](references/python-sdk.md).

## Webhook parsing, verification, and context

Node SDK 21.0.0 and Python SDK 15.0.0 reject payloads sent to the parser for
the other webhook format. Use `stripe.webhooks.constructEvent(payload, signature, secret)`
for Node snapshots and `stripe.parseEventNotification(payload, signature, secret)`
for Node thin notifications. Python uses `stripe.Webhook.construct_event` for
snapshots and `client.parse_event_notification` for thin notifications.

Node SDK 22.6.2 rejects empty signing secrets; 23.0.1 also rejects secrets made
entirely of ASCII whitespace. In 23.0.0, omitting `tolerance` from
`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 the removed
top-level `Stripe.constructEventWithoutVerification()` with
`stripe.webhooks.constructEventWithoutVerification(payload)`. Starting in Node
22.5.0, use `stripe.parseEventNotificationWithoutVerification(payload)` for an
already verified thin payload, such as a queued notification.

In Node 19.0.0, omit `stripeAccount` when using `stripeContext` to avoid sending
both headers. Node 23.2.0 applies the notification context when fetching events
or related objects from notifications returned by `events.retrieve()` or
`events.list()`. Python 13.1.1 or later preserves `Stripe-Context` on subsequent list pages.

Thin delivery for API v1 resources requires private-preview access. Snapshot
events can be generated by v1 and v2 endpoints; an Accounts v2 integration may
need subscriptions in both formats. Typed v1 thin notification contracts are
described separately in the [Node reference](references/node-sdk.md).

See [Events and Destinations](references/events-and-releases.md) for permissions,
retention, Java handlers, and destination limits.

## Metered credits and flexible billing

Billing credit grants apply to subscription items with metered prices reporting
through Billing Meters. One-off invoices, one-time subscription add-ons,
licensed prices, and legacy Usage Records are ineligible. 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 expiration is set.

Credits apply after discounts and before taxes and `invoice_credit_balance`.
Finalization consumes credits, so simultaneous draft or preview invoices can
show the same credits and the invoice that finalizes first gets them. Within
an invoice, credits follow line order. See [credit grants](references/billing.md)
for grant ordering, expiration, restoration, and the 100-unused-grant limit.

Use `billing_mode[type]=flexible` on subscription creation or
`POST /v1/subscriptions/{id}/migrate` with `2025-06-30.basil` or later. Migration
is one-way and applies only to new activity; pending proration Invoice Items
retain their amounts. The billing cycle anchor changes only when explicitly set.

Subscription prebilling uses billing schedules to collect payment before a
future period begins. In the public preview, explicitly include the subscription
item's `billed_until` when you need the prebilling boundary. References distinguish
the public previews of subscription pause and Trial Offers from Endive contracts.

## Payment line items and reconciliation

Send up to 200 lines in `amount_details.line_items`. Each requires `product_name`,
nonnegative integer `unit_cost` in minor currency units, and positive integer
`quantity`. Use `expand[]=amount_details.line_items` to read the response list
under `amount_details.line_items.data`.

For `paypal`, supply lines by confirmation. For card and `paypal` payments,
omit line items when sending industry-specific data such as lodging, car rental,
or airline metadata. Tax and discount each use either payment-level or per-line fields.

Line subtotals plus tax and shipping minus discounts must reconcile to the
payment amount or the request returns HTTP 400. Setting
`amount_details.enforce_arithmetic_validation=false` permits a mismatch; read
`amount_details.error.code`. Card lines with arithmetic errors are withheld from
the network and lose enhanced-data qualification. An accepted API request can
still fail network qualification; see [line-item requirements](references/checkout-and-payments.md).

Invoices can receive multiple and partial payments. Reconcile all associated
payments and any remaining balance. Read `amount_paid_off_stripe` for externally
paid invoice amounts and `PaymentIntent.payment_record` to associate an Intent
with a Payment Record.

## Accounts v2 and connected account workflows

Use `configuration.merchant` for payment acceptance and `configuration.recipient`
for transfers. The recipient's `stripe_balance.stripe_transfers` is required for
indirect charges. Accounts v2 can return `null` for populated fields until
requested with `include`; include `requirements` on create to see default requirements.

Set `configuration.customer` and send `customer_account=acct_…` on customer-facing
requests such as `POST /v1/setup_intents` and when creating invoices or subscriptions.
Keep Accounts v1 for connected-account OAuth, recipient service agreements, and
capabilities such as `treasury`, `card_issuing_*`, and `legacy_payments`.

Platforms can reject connected accounts that have balances and choose whether
to pause payouts. The unreject endpoint reverses a rejection your platform initiated.
For Financial Connections Session creation, use `filters.country`; remove
`filters.countries` from create requests and response readers in Endive.

See [Connect and Accounts](references/connect-and-accounts.md) for verification,
merchant capabilities, dashboard links, Money Management, and Treasury details.

## Terminal, Issuing, tax, and dispute controls

When saving a card with Terminal, migrate from the customer-consent flag to the
required `allow_redisplay` setting. Server-driven reader actions expose API error
details distinguishing API-originated failures from reader-originated failures.

Physical Issuing card creation supports shipping address validation, and its
default behavior changes in Acacia. Set the validation option explicitly if the
flow depends on a specific mode. Virtual cards can use a payment count limit to
cancel automatically; spending controls can allow or block authorizations based
on whether the card was physically present.

Dispute updates accept `evidence.appeal` and `intended_submission_method`.
Read `evidence_details.submission_method` for the actual method and handle
`appeal_needs_response` and `appeal_under_review`. See the
[Terminal, Issuing, Tax, and Risk reference](references/terminal-issuing-tax-and-risk.md)
for reader types, authorization reasons, tax registrations, and Radar changes.

Files in this skill

  • SKILL.md10 KB
  • coverage.json1.3 KB
  • references/billing.md7.5 KB
  • references/checkout-and-payments.md8.9 KB
  • references/connect-and-accounts.md4.4 KB
  • references/events-and-releases.md3.3 KB
  • references/node-sdk.md9.7 KB
  • references/python-sdk.md5 KB
  • references/terminal-issuing-tax-and-risk.md3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.