#prabu-appfee-retrieve

1 messages ยท Page 1 of 1 (latest)

hollow plinth
#

hello, this is most likely because you are making the request on the Connect account. The ApplicationFee lives on the Platform account so you don't have to fetch it as the Connect acct

warm zinc
#

could you help me, how to do partial refund on application fees ?

#

Stripe.stripe_account = "acct_1J57gBEjbda0hgH9"
Stripe::Refund.create({
amount: 8000,
payment_intent: 'pi_3KQRYdEjbda0hgH91S49gG07',
refund_application_fee: true
})
I would like to keep $20 in application fees after partial refund.

#

is that possible ?

hollow plinth
#

yes partial refund of application fee is possbile, when you partially refund the PaymentIntent , the same proportion of AppFee is refunded

warm zinc
#

but the above code refund entire application fees. where to set application fees keep $20 only rest of amount can be refunded.

hollow plinth
#

what amount was the PaymentIntent?

#

alternative is

warm zinc
#

Stripe::ApplicationFee.create_refund(
'fee_1KQRdcEjbda0hgH9xUQPe6rt',
amount: "5300"
)
i tried but it throws an error.

hollow plinth
#

what error

warm zinc
#

Stripe::InvalidRequestError: No such application fee

hollow plinth
#

remove this line

warm zinc
#

ok I will remove that line before run Stripe::ApplicationFee.create_refund

#

now got it.

#

Is this partial refunded applications fees goes to connected account right?

terse rock
#

Hello ๐Ÿ‘‹ Stepping in for hmunoz here,

Is this partial refunded applications fees goes to connected account right?
Yes they will ๐Ÿ™‚