#Sarvesh
1 messages ยท Page 1 of 1 (latest)
Hello, are you looking for coding help, or are you having trouble refunding a specific payment that has already happened?
for connected account user I want to build the payment intent transaction link so he can check the status of each transaction just by clicking on the link from application and he will see Stripe page in another tab with transaction details and can also click Refund from Stripe if someone cancelled the registration
how it can be achived?
You could have that button tell your server which payment to refund and the server can make an API call to actually create that refund https://stripe.com/docs/api/refunds/create#create_refund-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 so I need to pass payment intent id "pi_3M8kHmPGjJdpmYtd11XOXzdF" or charge object Id to refund request?
charges":{
"object":"list",
"data":[
{
"id":"ch_3M8kHmPGjJdpmYtd16XUIsye",
"object":"charge",
You can use either I believe
Because you have the payment intent on that page, I assumed the intent Id would be easier
ok, can I generate just a link to express account and refund can be done from Stripe page itself by the connected account user just by searching the Payment intent id and click refund ?
Hi there ๐ I'm jumping in as my teammate needs to step away soon. I don't think the Express dashboard provides your Connected Accounts with the ability to refund payments, but will need to double check that to confirm.
ok, pls check as there will be rare case of refund so want to keep it simple and on Stripe side only
No, I'm not seeing the ability to refund payments in the Express Dashboard.
ok so from above api request will it auto refund to same participant card or bank account without application fee?
Sorry, I'm a little unclear on what you're asking as I don't see a request referenced here. If you're referring to the function/endpoint that my teammate pointed you to, then yes that function performs a refund to the original payment method used. Whether the application fee is refunded is dependent on whether you use refund_application_fee parameter:
https://stripe.com/docs/api/refunds/create#create_refund-refund_application_fee
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.