News:

Support the VirtueMart project and become a member

Main Menu

Set order status by payment method ?

Started by dmb, January 29, 2018, 18:40:04 PM

Previous topic - Next topic

Jörgen

Hello dmb

Each payment plugin gets called in the checkout. It is up to the plugin to check that the call is for himself. The VM standard payment plugins have code that shows how this test should be done. If a plugin takes the call without being the recipient it might cause some very strange results.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

dmb


That's really interesting Jörgen,

So it's quite possible that the Stripe plugin is thinking that the call is for it, processing it according to its rules and then leaving the order in the state I described.

Do you know if they're they called in any particular order, e.g. by ID ? And does the processing abort once a plugin has handled the order ?

If so I might be able to "re-order" them as a work-around.

Thanks !

David

Jörgen

Do not know in which order, Id would be probable, but all get called.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

dmb

Just to note that this is now working perfectly ... the Stripe plugin I was using was trapping the zero amount as an invalid price and causing the order processing to be terminated rather than leaving them for the "Free" payment method to deal with. The developers added minimum/maximum configuration values to the plugin and it's now working perfectly.

Thanks to all for helping - and for teaching me a bit about payment plugins ;)

David

Jörgen

The Stripe programmer learned something new also  ;)

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.