#lucianopaci

1 messages · Page 1 of 1 (latest)

cerulean summitBOT
hot sequoia
#

Hey there, can you explain a bit more about what you're trying to do and what you're having an issue with?

#

When do you want you customers to pay, and what do you want them to pay for?

#

ie, if you create a subscription today, then something happens in 5 days (send an invoice email?), what period are they paying for?

fiery siren
#

Right now, we have 3 priced plans. All of them have a 14 days trial period. The customer, when creating an account, can use his Credit Card or can be sent the invoice with different payment methods (i.e Bank Transfer). This invoice is sent 5 days after the creation of the subscription.

I'm doing a v2 of this flow, where we add a new free plan, and we remove the trial period from all the other paid plans.

#

If the user creates an account an puts his Credit Card info, he will be charged at that moment.

But we wanted to be flexible, so we enabled the possibility to send an invoice to the customer after 5 days, so he can use other billing methods instead of credit card.

#

My question is:

Will I be able to keep this 2 flows (Card and "Delayed Invoice") without a Trial Period in my plans?

#

When creating a subscription with a priced plan and without trial periods

{
  "customer": "cus_SSSSSSSSSSSS",
  "items": [{ "plan": "price_1MXXXXXXXXXXXXXX", "quantity": 1 }],
  "metadata": null,
  "currency": "usd",
  "payment_behavior": "default_incomplete",
  "collection_method": "charge_automatically",
  "payment_settings": { "save_default_payment_method": "on_subscription" },
  "expand": ["pending_setup_intent"]
}

I don't receive the client_secret from the pending_setup_intent in the response

hot sequoia
#

ok reading the above ⏲️

#

Ok, i see

#

So I think you can do this, but thinking through options here

#

Using send_invoice you could turn off auto-advancement to let you trigger the emailed invoice with /send later at your time of choosing, but I think there's an issue with not beign able to do that for the first invoice

cerulean summitBOT
fiery siren
#

But is there a possibility to delegate the invoice management to Stripe and keep these 2 flows (Card and "Delayed Invoice") without a Trial Period in my plans?

hot sequoia
#

What do you mean by leave that to stripe?

fiery siren
#

I meant that I would like to avoid having to send invoices by myself and leaving that functionality to Stripe, as I've been using

#

Delegate "invoice management" to Stripe.. that's what I tried to say

hot sequoia
#

Sure, but you'd need to determine when/how those flows are used. I think the immediate payment case is straightforward and that you have that work, right?

#

For the deferred emailed invoice, I suspect subscription schedules with a future start date using collection_method=send_invoice is likely the lightest lift for you