#RubyDev - Cancel Sub

1 messages · Page 1 of 1 (latest)

blazing sleet
#

Hi 👋

shy latch
#

btw I run this subscription = Stripe::Subscription.delete(stripe_subscription_id, {prorate: true})

blazing sleet
#

Okay, so what about that isn't getting you the behavior you want?

shy latch
#

How do you initiate the refund?

#

We see a pending item that is negative and has no credit balance in the dashboard

#

this is the event ID

#

evt_1KxvmQCEgURHX8Wq67QPrdlX

blazing sleet
#

You will need to initiate the refund yourself. Subscription prorations create credit balances.

shy latch
#

but we see a zero dollar credit balance and Pending invoice items of negative (29.94)

#

also can we refund via API?

#

cause we don't wanna manually refund

blazing sleet
shy latch
#

Okay, but we only want to refund the prorated amount, not the entire charge.

blazing sleet
#

You can specify the amount when you create the refund

shy latch
#

How do we know the exact prorate amount?

blazing sleet