Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get refund object by calling refund method #235

Open
EfratKol opened this issue May 26, 2024 · 0 comments
Open

get refund object by calling refund method #235

EfratKol opened this issue May 26, 2024 · 0 comments

Comments

@EfratKol
Copy link

I used refund method,
the refund success and I see the refund in my stripe account,
but the object response is like the object response of charge method (https://prnt.sc/m8ntjSmUelOB),
and I need an indication to know if the refund was made,

I did changes in order to get refund object according to Stripe doc.
I change the RefundRequest.php file and then I get object of refund(https://prnt.sc/4vQqPFpFPdrN):

  1. in the getEndpoint method I replace the line, instead of: "$this->endpoint.'/charges/'.$this->getTransactionReference().'/refund';"
    I wrote : $this->endpoint.'/refunds'
  2. in getData method I added request param 'charge' = $this->getTransactionReference();

someone have idea how to get the response bellow Stripe doc without any change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant