VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: noOob on August 19, 2018, 16:11:49 PM

Title: Hierarchical payment method
Post by: noOob on August 19, 2018, 16:11:49 PM
I want to create a payment method that uses multi payment methods in a hierarchical way. Usage example could be:

A client's cart price become $100, he has $50 score in site (AlphaUserPoint) and he could pay other $50 by credit cart or like that.

I need to write my own plugin (cause it's a little bit more complicated than this example) i need to know how to write a correct payment plugin for VM ( I searched for the document but there is none) and how shall i call other Payments?
directly or i think could change the $data and dispatch plgVmConfirmedOrder trigger or sth like that once again.
Title: Re: Hierarchical payment method
Post by: GJC Web Design on August 19, 2018, 19:16:14 PM
There are no docs but just use the bundled payment plugins as your examples

the "standard" is the simplest and then authorize is a good example of calls and passes to payment providors
Title: Re: Hierarchical payment method
Post by: noOob on August 21, 2018, 08:49:09 AM
Quote from: GJC Web Design on August 19, 2018, 19:16:14 PM
There are no docs but just use the bundled payment plugins as your examples

the "standard" is the simplest and then authorize is a good example of calls and passes to payment providors

Oh it takes time, thank you anyway.