<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>uma-no-kawa</author_name>
  <author_url>https://blog.hatena.ne.jp/uma-no-kawa/</author_url>
  <blog_title>底辺SE奮闘記</blog_title>
  <blog_url>https://uma-no-kawa.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>Stripe</anon>
    <anon>Laravel</anon>
  </categories>
  <description>現象 表題の通り。Stripeのテスト中に、 You cannot set the quantity for metered plans. というよくわからないエラーが出る。 解法 バージョンによっておそらく解法が異なる。両方試すと良い。 解法1 数量を0に指定する。 &lt;?php $_user-&gt;newSubscription(&quot;default&quot;, &quot;price_~~&quot;) -&gt;quantity(0)// &lt;-- ここ -&gt;create(&quot;pm~~~&quot;); 解法2 数量をnullにする &lt;?php $_user-&gt;newSubscription(&quot;default&quot;, &quot;price_~~&quot;) -&gt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fuma-no-kawa.hateblo.jp%2Fentry%2F2022%2F04%2F13%2F164307&quot; title=&quot;【Stripe・Laravel Cashier】newSubscription時に You cannot set the quantity for metered plans. で困った - 底辺SE奮闘記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-04-13 16:43:07</published>
  <title>【Stripe・Laravel Cashier】newSubscription時に You cannot set the quantity for metered plans. で困った</title>
  <type>rich</type>
  <url>https://uma-no-kawa.hateblo.jp/entry/2022/04/13/164307</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
