Stripeを中心とした収益分析、開発、運用に関する知見を共有しています。
案外整理できてなかったので、自分で振り返るのも兼ねて。 1: Finalizedすると更新できないデータが有る invoices.updateは下書き状態のものにしか実行できない項目がいくつかあります。 Draft invoices are fully editable. Once an invoice is finalized, monetary values, as well as collection_method, become uneditable. If you would like to stop the Stripe Billi...
続きを読む →例えば「無料プランは1ユーザー1つだけしか契約できない」とかしたいですよね。 そういう時、Stripeではsubscriptions.listのAPIを利用して特定のプランをSubscribeしているか否かを見ることができます。 コード const hasSubscribed = async (customerId, plan) => { const result = a...