GrinGEO Posted Wednesday at 12:07 PM Share Posted Wednesday at 12:07 PM Hi have a few orders where the customer did not pay the order by digital payment, like stripe or paypal. Probably their bank refused the payment. I have the issue that I need to change the customer to bank wire, but I cant delete or modify the original payment, even not in PresTool. Is there any other workaround? becouse any modification I try the original payment is set again. Link to comment Share on other sites More sharing options...
Daresh Posted Wednesday at 12:17 PM Share Posted Wednesday at 12:17 PM It's not easy because in general, payment modules may have their own tables in the database, storing additional data related to orders. So changing a payment method to another one would require knowing it precisely and what it requires. Maybe that's why there is no such functionality in PrestaShop. Even if you change the payment related columns in the database (prefix_orders table), the Stripe module that you have may keep some data related to that order. So to change the payment method in a clean way, it would be recommended to also remove everything related to that order from Stripe's tables. Link to comment Share on other sites More sharing options...
GrinGEO Posted yesterday at 08:21 AM Author Share Posted yesterday at 08:21 AM Hi Daresh Yes you are right. If I use order manager module and change the payment type, effectively Stripe overwrites it. The problem is now that the customer did not pay by Stripe, becouse his bank refused the payment. The easiest would be to modify the payment type to bank, or just be able to disable stripe on that order for example. Or I need to cancel the order and make a new one. Link to comment Share on other sites More sharing options...
Daresh Posted yesterday at 08:52 AM Share Posted yesterday at 08:52 AM Exactly! So the question is does this order got sent to Stripe and it will overwrite it all the time, or can it be removed on the store level (from some Stripe database tables). Probably some custom module would be required here, one that knows what Stripe does and is able to remove some information from it. Link to comment Share on other sites More sharing options...
alex_developer Posted yesterday at 09:30 AM Share Posted yesterday at 09:30 AM Most likely, the Stripe module has its own table in the database, such as ps_stripe_orders. Search for a similar table in the database and delete this order from it. Then change the payment method. After that, requests from Stripe for this order will simply be ignored by this module. Link to comment Share on other sites More sharing options...
ErnestQ Posted 21 hours ago Share Posted 21 hours ago Yeah, the Stripe module usually stores its payment data in a separate database table — most often something like ps_stripe_payment or ps_stripe_orders. If you remove the record related to that specific order, Stripe will stop overwriting the changes. Just make sure to back up your database before doing anything, since one wrong query could break the link between the order and its payment data. It’s a quick fix, but worth doing carefully. Link to comment Share on other sites More sharing options...
El Patron Posted 18 hours ago Share Posted 18 hours ago (edited) would it not be simpler to just cancel the order? Edited 18 hours ago by El Patron (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now