Jump to content

Payment issues - how to delete or change payment method


GrinGEO

Recommended Posts

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.

 

D501F6EB-868E-4BD5-92AF-B2B77B15C751.thumb.png.e37c5909c51d663700aba1770d6b872f.png

Link to comment
Share on other sites

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...