---
title: "lint/cashier-13/prefer-stripe-method"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="lint/cashier-13/prefer-stripe-method" />

Not in any preset. In Rector's [`rector-laravel/cashier-13`](/docs/rules/sets/rector-laravel/cashier-13), [`rector-laravel/up-to-cashier-13`](/docs/rules/sets/rector-laravel/up-to-cashier-13), [`rector-laravel/up-to-cashier-14`](/docs/rules/sets/rector-laravel/up-to-cashier-14) sets. Unsafe fix: it can change behavior.

## What it does

Renames the Billable stripeOptions() to stripe().

## Configuration

```toml title="pun.toml"
[lint.rules]
"cashier-13/prefer-stripe-method" = "error"
```

To skip it in some files or lines, add an [override](/docs/configuration/pun-toml#lint) or an [ignore comment](/docs/configuration/ignore-comments).

## Replaces

- [`CashierStripeOptionsToStripe`](https://getrector.com/rule-detail/cashier-stripe-options-to-stripe-rector) (rector-laravel)

[More lint/cashier-13 rules](/docs/rules/lint/cashier-13) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
