#Sarvesh
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
please use this thread for our subsequent messages
Hi
I am calling the refund api for connected account$refund = $stripe->refunds->create([
'charge' => $chargeId,
"metadata" => $metaData,
]);
@stoic karma please remove your messages from the main channel and let's keep our subsequent messages here
I am calling the refund api for connected account
$refund = $stripe->refunds->create([
'charge' => $chargeId,
"metadata" => $metaData,
]);
getting exception as
No such charge: 'ch_3M9NnZPGjJdpmYtd04SSikVt'
tried with payment_intent Id but same error
do you have the request id? https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
request":{
"id":"req_rZQffg78U9LcWk",
the request id where you got No such charge
this payment object is saved in my database
from the payment request object, i am taking charge object id and sending to refund request
the request ID I'm looking for is the one from the refund request
pm_1M9NoCPGjJdpmYtdoORRub5E
this is same payment intent i want to send refund request
above request id is belong this payment intent
@stoic karma would you mind visiting https://dashboard.stripe.com/test/logs?method[0]=post&method[1]=delete&direction[0]=self&direction[1]=connect_in&path=%2Fv1%2Frefunds&showIP=false and checking the request id for the refund that gave you the error "No such charge: 'ch_3M9NnZPGjJdpmYtd04SSikVt'"
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
yes, checked just now it shows same error in your logs
resource_missing - id
No such charge: 'ch_3M9NnZPGjJdpmYtd04SSikVt'
what I need to change here?
while doing the request
I need the request ID to look into it
you need to find the req_xxx related to the refund you're creating
@stoic karma would you mind sharing your account id? you can find it here https://dashboard.stripe.com/settings/account
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
acct_xxx
which one are you doing the refund from?
main account id: acct_1LcWQoALTlZ8nxc3
connected account id: acct_1M7uEWPGjJdpmYtd
I am trying to do refund from connected account id
acct_1M7uEWPGjJdpmYtd
how? link?
$refund = $stripe->refunds->create([
'charge' => $chargeId,
"metadata" => $metaData,
]
['stripe_account' => 'acct_xxx']);
let me know if you need any more help
Application fees:$1.18
Stripe processing fees:$0.52
will it send webhook response on request success?
yes
appliction fee and stripe will not get refunded right?
no, we do not want to refund app and stripe fee,
will it send webhook response on request success? which webook need to subscribe?
I already subscribed account.updated and payment.intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok, thank you, I will recheck with another payment request
let me know if you need any more help
yes
pi_3M9RjBPGjJdpmYtd1Zf3MA1u
showing status as "Refunded" in stripe and in webhook response I can complete amount in refund object ($5.54) which looks me wrong. from amount application fee $1.12 + Stripe fee $0.46 should not be refunded so $3.96 will be correct refund amount to user right?
Can you clarify the ask please? You didn't pass the amount parameter when creating the refund, so we refund the full payment: https://dashboard.stripe.com/test/logs/req_X0AgTHpEGcnDW8
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
ok, if i do not pass the amount but I do not want the application fee to be refund because it is not refundable. so how to handle it?
$5.54 - ($1.12 app fee) - $0.46 stripe fee = $3.96 only needs to refund from stripe. any params for this to not to refund?
Then you'd pass amount: 396 when creating the refund
hm, I only need to deduct the our application fee and not stripe fee right if I want to pass the amount? Stripe fee is not refundable ?
Correct, the Stripe fees aren't refunded