#jcnguyen_36895_03919

1 messages · Page 1 of 1 (latest)

soft surgeBOT
outer wagon
#

Yes you can give them a coupon/discount, then tweak the next Invoice the have an extra Invoice Item.

thorny tinsel
#

what do you meant by tweak the next invoice to have extra invoice item

#

i though when i create a subscription with priceid that's setup for reoccurring it will automatically collect the payment, no?

outer wagon
#

When the next Invoice is generated, it will have 1 hour before finalized and auto-collect the payment

#

In that 1 hour you will be able to modify the Invoice

thorny tinsel
#

i want to charge the user on the next invoice

#

but not the current one that created when you create a subscription

#

So i have this scenario.
User A already paid a subscription and end in 12/31 but doesn't exist in stripe yet. So i created a new subscription for this user. However, i don't want to bill this user when the subsubscription was created but want to bill on the next cycle

outer wagon
#

Yes I know, so

  1. Give the customer a discount to offset the current one when you create a Subscription
  2. Two options:
    2.a Wait until next cycle, catch the invoice.created webhook event, then add the amount you want to charge for the previous offsetted Invoice
    2.b Generate an Invoice Item for this Subscription, so the next cycle's Invoice will automatically pick it up
thorny tinsel
#

can i mark the invoice to paid

#

and on the next invoice it automatic charge the user?

#

and no need to change the pricing or apply discount

outer wagon
#

No I don't think there is such a convenience parameter, unfortunately. You would want to set up in 2 steps above

thorny tinsel
#

so when i create a subscription set PaymentBehavior = "default_incomplete" which allow me to set the invoice status to paid once it finalize

#

if it set it the invoice = paid that will update the subscription status to active and when the next cycle start stripe will auto bill correct

outer wagon
#

Why? I think that parameter has a different effect

#

Use default_incomplete to create Subscriptions with status=incomplete when the first invoice requires payment, otherwise start as active.

thorny tinsel
#

when subscription status = incomplete i then set the invoice to paid which rolled the subscription to active correct?

outer wagon
#

How do you set it?

thorny tinsel
#

via api

#

InvoiceService.Pay(invoiceid);

outer wagon
#

Ah you marked it out of band?

#

Yeah that works too, same as giving them a coupon/discount

thorny tinsel
#

yes

#

sound good

#

and next invoice will automatic charge user if they have default CC set on their account correct

outer wagon
#

on their Customer object yes (remember to add the extra item for this cycle's amount)

thorny tinsel
#

add extra item meaning?

#

the first cycle amount?

outer wagon
#

Yes, is it what you wanted? Never mind if you didn't

#

I thought you want like, creating $10 Subscription, not charging them $10 on Oct 1, but charging $20 on Nov 1, then $10 onward on Dec 1 and so on

thorny tinsel
#

oh no

#

create subscription with $10 and not charge them and mark the invoice as paid then charge them $10 on the november so on

outer wagon
#

Okie, then nevermind!

thorny tinsel
#

another question when i mark the invoice as paid. there will be no payment_intent info correct?

outer wagon
#

Hmm not sure. I think there could be one and marked as succeded. But you can inspect the Invoice object to see

thorny tinsel
#

i just did and payment_intent is empty

outer wagon
#

Okie, so no PI