現象
表題の通り。Stripeのテスト中に、
Attempt to read property "default_payment_method" on null
というよくわからないエラーが出る。
解法
下記を確認
- Billableモデル(\App\Models\Userなど)に対応するユーザがStripe上に存在しているか。
- Billableモデルに設定されている支払い方法がStripe上に存在しているか
表題の通り。Stripeのテスト中に、
Attempt to read property "default_payment_method" on null
というよくわからないエラーが出る。
下記を確認