cann't finish checkout with payment banktransfer

If you are runnig Joomla 3.x and Virtuemart 3.x please post to this forum your questions or support tickets about One Page Checkout

cann't finish checkout with payment banktransfer

Postby fgevic » Tue Feb 10, 2015 11:42 am

Hello,

I use Joomla 3.3.6, VirtueMart 3.0.4 and Onepagecheckout 2.0.280.270115 .
I have installed two payment-methods: IDeal and Banktransfer.
Both payment-methods are working correctly when OPC is disabled.
When I enable OPC the payment-method iDeal is working correct.
With the payment-method Banktransfer I cann't finish the checkout-process.
The system returns after confirmation to /component/virtuemart/cart/editpayment?Itemid=0

In other topics was recommended to change the TOS to not required. I tried that without result.

Hope you can help me

Best Regards,

Felix
fgevic
 
Posts: 3
Joined: Tue Feb 10, 2015 11:08 am

Re: cann't finish checkout with payment banktransfer

Postby admin » Tue Feb 10, 2015 2:33 pm

hello Felix, pls try our 281 version as well. Does the returned error include a code like "Error 280:"... and any other data ?

in 280 and 281 we added a special validation to shipping methods:

By default in core VM, if you modify the shipping value with F12 key in google chrome dev tools, you can "trick" the system to change the shipping to something else that is not available within the country selected. Because core VM does not do any sort of validation during the checkout for the selected "weight_countries" shipping (up to 3.0.4), we added this logic to OPC, but it might had include a small bugs in version 280 and therefore i suggest o update this with version 281 which further passed more tests.

Now, there are two checks:
1. if the selected method exists
2. if the selected method meets the conditions of the plugin's configuration

Let us know if the 281 version had fixed it and if not, we can check this on your site as well.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: cann't finish checkout with payment banktransfer

Postby fgevic » Wed Feb 11, 2015 12:19 pm

Hello Stan,

Thanks for your quick answer.

I installed the new version 281.

Payment-method iDeal
The payment-method iDeal is OK.

The payment-method Banktransfer
Gives Error 99: Geen betaalwijze geselecteerd ( no payment-method selected)
I use payment-class-name: VM Payment Standard

The problem is still there.

Best Regards,

Felix
fgevic
 
Posts: 3
Joined: Tue Feb 10, 2015 11:08 am

Re: cann't finish checkout with payment banktransfer

Postby admin » Wed Feb 11, 2015 2:24 pm

hello Felix, the error 99 means that one of the payment plugins returned FALSE for plgVmOnSelectCheckPayment - this function is also triggered when calcuting the totals at the frontend.

the function is used to check payment's method's inputs upon the event of selecing it... (for iDeal this would be a bank was selected at the checkout - if your iDeal does it this way)

i added this code for the future versions of OPC (pls update the function per below code), this code will tell you which payment plugin failed:

\components\com_onepage\overrides\vmplugin.php
Code: Select all

   // unbelievable, but we need a vm fix here:
   public function plgVmOnSelectCheckPaymentOPC(&$cart, &$msg)
    {
      if (empty($cart->virtuemart_paymentmethod_id)) return null;
       $ret = $this->plgVmOnSelectCheckPayment($cart, $msg);
      if ($ret === false) {
        if ($this->_name == 'paymill')
         {
           if (empty($this->methods)) return null;
           
         }
      }
      if ($ret === false)
      {
         if (!empty($this->payment_element))
         $msg = ' Element: '.$this->payment_element.', '.$msg;
      }
      return $ret;
    }


it's also recommended that you disable all payment methods in joomla plugin manager which are not used, so they do not interfere with the above functionality.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: cann't finish checkout with payment banktransfer

Postby fgevic » Wed Feb 11, 2015 5:19 pm

Hello Stan,

Problem is solved.

Thanks for the excellent support

Best Regards,

Felix
fgevic
 
Posts: 3
Joined: Tue Feb 10, 2015 11:08 am

Re: cann't finish checkout with payment banktransfer

Postby admin » Thu Feb 12, 2015 1:09 pm

hello, you are welcome, the problem was caused by a broken plugin "klikandpay" which returned false upon a validation of your standard's payment.

i fixed this generally in opc once it detects this plugin, but other soluton also would be to disable the plugin in joomla manager.

best regards, stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 3 on Joomla 3.x

cron