#idhruv

1 messages · Page 1 of 1 (latest)

sinful yokeBOT
harsh nacelle
sullen eagle
#

const refund = await stripe.refunds.create({ payment_intent: 'pi_Aabcxyz01aDfoo', amount: 1000, });

this will work?

harsh nacelle
harsh nacelle
sullen eagle
#

what happens exactly if i dont specify amount and use just this one liner await stripe.refunds.create({payment_intent: 'pi_Aabcxyz01aDfoo'});

sullen eagle
harsh nacelle
sullen eagle
#

I am not able to understand how prorations can help me here?

#

right now in my case prorations are set to none, proration_behavior: 'none'

#

while creating subscription schedule

#

and I am using subscription schedule, not just subscriptions

harsh nacelle
#

but it'll depends on your business, if the user cancels the subscription in the middle of the month for example and you want to refund the user all the charged amount, then you need to use refund API and not proration