202-ecommerce / stripe_official

After years of hard work with Stripe connector for PrestaShop, 202 ecommerce stop the development of Stripe module on January 9th 2023. Thanks for all contributors that help us!
20 stars 20 forks source link

In multishop setup, $stripeDispute->orderHasDispute connects to the wrong stripe account #45

Closed lmeyer1 closed 3 years ago

lmeyer1 commented 3 years ago

Prestashop setup

Action that leads to error

Explanation

In the function orderHasDispute (classes/StripeDispute.php, line 51),$disputes = $this->getAllDisputes();` should get the disputes of the stripe account connected to the shop of the current order, but, since no shop is selected, it will connect to the stripe account of shop 1 (Prestashop always loads the configuration of shop 1 if no shop is selected).

mribeiro202 commented 3 years ago

Hello @lmeyer1

We are working on your PR, thank you for you help. https://github.com/202-ecommerce/stripe_official/pull/43

mribeiro202 commented 3 years ago

Hi @lmeyer1

I close this ticket because you made the PR.

Thank you and have a nice day