#alok-subscription

1 messages · Page 1 of 1 (latest)

solar crypt
#

hello, can you say more? I don't understand the question

narrow thistle
#

And invoice_now is listed as an optional parameter:

#

How do I pass it into the request?

solar crypt
#

pass invoice_now: true with the request

narrow thistle
#

Thanks! It didn't seem to work when tried it. Will do so again.

#

Still not working .. here is my call:

    Stripe::Subscription.delete({
      id: stripe_subscription_id,
      invoice_now: true
    })
#

Whereas this worked:
Stripe::Subscription.delete(stripe_subscription_id)

#

I'm using rails and have the gem enabled

frigid schooner
#

Hi @narrow thistle! Stepping in here from @solar crypt as he needs to step away. You want

      stripe_subscription_id, {
      invoice_now: true
    })```
narrow thistle
#

Thanks! Trying it now.

#

Worked. So as I understand it, the invoice will be generated and the bill will be processed immediately on the deletion of the subscription right?

frigid schooner
#

Yep. I recommend testing it out to see exactly how it works!