News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

problem validate the payment

Started by kaya, December 16, 2016, 11:35:34 AM

Previous topic - Next topic

kaya

Hi dear
I'm using 2 payment plugin in my site for example plugin A and plugin B and my problem this is in my site when use each plugin only validate with plugin  A
if using plugin B validate with plugin A too. what is problem? why not working selected user plugin when validate?

Jörgen

Hello

Try to make a better description of Your problem and
http://forum.virtuemart.net/index.php?topic=79799.0

regards

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

kaya

we use virtuemart version: 3.0.18 and joomla 3.6.4
when user select a payment method not have problem and go to the bank but when callback from bank only get data from plugin A payment and not working user selected payment method

GJC Web Design

Are these core payment plugins?
If 3rd party only the dev can help u - prob wrongly coded confirm function

If not then far more info is needed
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kaya

It's custom payment plugin and this is my callback url

$callBackUrl = JURI::root() . 'index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component'.'&lang='.  vRequest::getCmd('lang','');

and in this method plgVmOnPaymentNotification only back in plugin A and not work user selected payment

kaya

I'm solved my problem I think it's virtuemart bug and vituemart not check selected payment plugin in plgVmOnPaymentNotification I'm checked it and return if payment method is not user selected payment method. I don't see this code in any virtuemart core payment plugins.

GJC Web Design

your supposed to send back the payment method id  &pm=x

$virtuemart_paymentmethod_id = vRequest::getInt('pm', 0);
      $this->_currentMethod = $this->getVmPluginMethod($virtuemart_paymentmethod_id);
      if (!$this->selectedThisElement($this->_currentMethod->payment_element)) {
         return;
      }
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation