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
=> The information in the payment detail will not show the disputes on the payment.
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).
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).