Author Topic: Set order status by payment method ?  (Read 688 times)

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 1401
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Set order status by payment method ?
« Reply #15 on: March 26, 2018, 19:14:04 pm »
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.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

dmb

  • Jr. Member
  • **
  • Posts: 77
  • A beginner
Re: Set order status by payment method ?
« Reply #16 on: March 26, 2018, 19:26:05 pm »

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

  • Global Moderator
  • Full Member
  • *
  • Posts: 1401
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Set order status by payment method ?
« Reply #17 on: March 26, 2018, 19:31:55 pm »
Do not know in which order, Id would be probable, but all get called.

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)

dmb

  • Jr. Member
  • **
  • Posts: 77
  • A beginner
Re: Set order status by payment method ?
« Reply #18 on: March 28, 2018, 17:26:31 pm »
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

  • Global Moderator
  • Full Member
  • *
  • Posts: 1401
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Set order status by payment method ?
« Reply #19 on: March 28, 2018, 19:29:19 pm »
The Stripe programmer learned something new also  ;)

regards

Jörgen @ Kreativ Fotografi
Joomla 3.8.3
Virtuemart 3.2.12
Olympiantheme Hera (customized)