#prabu-appfee-retrieve
1 messages ยท Page 1 of 1 (latest)
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
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 ?
yes partial refund of application fee is possbile, when you partially refund the PaymentIntent , the same proportion of AppFee is refunded
but the above code refund entire application fees. where to set application fees keep $20 only rest of amount can be refunded.
what amount was the PaymentIntent?
alternative is
refund the PaymentIntent but don't pass refund_application_fee: true
then create the ApplicationFee refund separately https://stripe.com/docs/api/fee_refunds/create
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Stripe::ApplicationFee.create_refund(
'fee_1KQRdcEjbda0hgH9xUQPe6rt',
amount: "5300"
)
i tried but it throws an error.
what error
Stripe::InvalidRequestError: No such application fee
remove this line
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?
Hello ๐ Stepping in for hmunoz here,
Is this partial refunded applications fees goes to connected account right?
Yes they will ๐