default_tax_rates: defaultTaxRates, collection_method: 'send_invoice', payment_settings: { payment_method_types: ['card', 'customer_balance'] }, // 無料トライアル終了後の翌月頭 billing_cycle_anchor: account.createdAt.add(1, 'M').startOf('M').add(1, ‘M').unix(), // アカウント作成後1ヶ月は無料トライアル trial_end: account.createdAt.add(1, 'M').startOf('d').subtract(1, ’s').unix(), // 支払いは翌月末 days_until_due: today.add(1, 'M').endOf('M').diff(today, 'd'), }); ແྉτϥΠΞϧதͷ4VCTDSJQUJPO࡞ stripe.subscriptions.create({ customer: customerId, items: [{ price: priceId }], collection_method: 'send_invoice', default_tax_rates: defaultTaxRates, payment_settings: { payment_method_types: ['card', 'customer_balance'] }, backdate_start_date: today.startOf('M').unix(), // 今月頭 billing_cycle_anchor: today.startOf('M').add(1, 'M').unix(), // 月初請求 days_until_due: 60, // 雑な"翌月末" trial_end: 'now', }); ௨ৗ࣌ͷ4VCTDSJQUJPO࡞ ٻॻͷࢧظݶΛଗ͍͑ͨ