VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Ricardo-IC on June 09, 2015, 13:16:37 PM

Title: VM3 + Joomla 3 Payment Gateway
Post by: Ricardo-IC on June 09, 2015, 13:16:37 PM
Hello everybody,

Currently we are developing a new payment gateway for VM3 with Joomla 3. So far I tried to follow the limited documentation on how to create one. Right now I am having trouble with the following items:

We also require a postback function, as I tried making that in my file but I am not sure if that works.
The sourcecode is located at https://github.com/icepay/VirtueMart-3.

If anybody could advise me into the right direction, that would be great.

Thank you.
Title: Re: VM3 + Joomla 3 Payment Gateway
Post by: GJC Web Design on June 09, 2015, 15:31:22 PM
add

function plgVmDeclarePluginParamsPaymentVM3( &$data) {
      return $this->declarePluginParams('payment', $data);
   }

to save->  field in xml;
Title: Re: VM3 + Joomla 3 Payment Gateway
Post by: Ricardo-IC on June 10, 2015, 12:31:36 PM
Quote from: GJC Web Design on June 09, 2015, 15:31:22 PM
add

function plgVmDeclarePluginParamsPaymentVM3( &$data) {
      return $this->declarePluginParams('payment', $data);
   }

to save->  field in xml;

I already seem to have that in my code in this file (https://github.com/icepay/VirtueMart-3/blob/master/icepay.php#L258). However, when I press Save, it refreshes with empty fields.
Title: Re: VM3 + Joomla 3 Payment Gateway
Post by: GJC Web Design on June 10, 2015, 14:45:49 PM
check your vars_to_push and what you actually post etc