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

Payment method: card details removed when ticking Terms of Service radio box

Started by rvbgnu, February 19, 2021, 13:53:24 PM

Previous topic - Next topic

rvbgnu

Hi fellows VirtueMart supporters!

I hope you are all well in this difficult time.

In the one page checkout, login or not, you enter your card details, and then click the terms of services box, and after the short javascript process, the card details are empty.

This has been reported by a client of mine, with Joomla 3.9.22 and VirtueMart 3.8.6.
I could reproduce it with the same versions and recent ones too.
- Authorize.net
- PayPal Payment Pro (showing the card details form)

Is there anyone else with this issue ?

Have a great day!
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

jenkinhill

I have never seen that and nobody else has reported it.  Are you using a third party OPC or template overrides?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

rvbgnu

Thank you jenkinhill for your super fast reply, as usual !

No, no other third party OPC or override. Just a standard Joomla + VirtueMart installs, with the protostar template.
I cannot tell you since which VM version it is happening, but I can reproduce it on several different website, live or dev.
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

rvbgnu

yes, it is. But one needs to re-enter the credit card details to validate it.
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

rvbgnu

Does anyone can try to reproduce it on a dev or test website ?
You may try with Paypal Payment Pro, without any sandbox credentials: you do not need to confirm the order and payment to reproduce the issue ;-)
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

Jörgen

When are you reentering the credit Card details? Has there been an update to PHP 8?
Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

rvbgnu

Thank you Jörgen for your reply.

There is no PHP 8 or any fancy stuff. It is on several sites and a "vanilla" test website, updated regularly.

Would you try on a test website, or a live/copy one?
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart

ssc3

Old problem effecting shipping/payment methods with fields.

http://forum.virtuemart.net/index.php?topic=145136.0
Virtuemart Payment Plugins
https://plugins.online-store.co.uk

GJC Web Design

The Authorize plugin seems to me to have multiple problems

clean install on vm 3.8.8 .. std checkout

when a CC number is entered and the field looses focus  onchange="javascript:checkAuthorizeNet(2, this);" is triggered

function checkAuthorizeNet(id, el)
               {
                 ccError=razCCerror(id);
               CheckCreditCardNumber(el.value, id);
               if (!ccError) {
               el.value=\'\';}
               }

but the js file components/com_virtuemart/assets/js/vmcreditcard.js isn't loaded afaik and these throw errors

adding  $html .= '<script src="/components/com_virtuemart/assets/js/vmcreditcard.js"></script>'; loads the above functions but this again fails on

if (cardname.toLowerCase () == cards.name.toLowerCase()) {

in the checkCreditCard() function as cardname is 0

...

just returning true for checkAuthorizeNet(2, this)  doesn't help the disappearing fields though, when you click T&Cs and on this particular install passing the cc details ( without VM OPC selected) is very flaky  ..
the majority of the time no details are stored in the $cart and as reported cleared when any other function is called.

:(

Jenks .. do u have any clients with a  working Authorize on the stand checkout on 3.8.8. ?

My two clients with Authorize both report that it is broken but aren't sure from when...  the method isn't used often.
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

jenkinhill

Quote from: GJC Web Design on March 03, 2021, 15:04:06 PM
Jenks .. do u have any clients with a  working Authorize on the stand checkout on 3.8.8. ?

My two clients with Authorize both report that it is broken but aren't sure from when...  the method isn't used often.

John, I have one active client using Auth - he is still on 3.8.6 and has reported no problems with that.

In case it makes a difference this site uses Abishek's OPC.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

GJC Web Design

Ta .. will test with alternate checkouts to see if i can get to the bottom of this.. :)
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

GJC Web Design

Ok .. as ssc3 pointed out there has been a change of function for the cart update

So in my testing anyway if the payment edit is not displayed in the cart ( i.e. VM cart std OPC )  - so edit payment is shown as a separate page  the card details do not get saved to the session when the updateCartNoMethods() function  is used.

my hack in the VM cart controller

   public function updateCartNoMethods($html=true,$force = null){
      //return $this->updatecart($html, $force, false);
      return $this->updatecart($html, $force, true);
   }

fixed the problem immediately

works for me anyway
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

AH

Yes I got trapped by this new "updatecartnomethods" function just the other day called in the cart view

I decided to leave the nomethods in the controller and "adjust" the cart view.html.php

static public function addCheckRequiredJs(){

Remove

      $(\'input[name="task"]\').val("updateCartNoMethods");




Regards
A

Joomla 4.4.5
php 8.1

rvbgnu

Thank you very much AH and GJC.

But how do we fix it for the regular "user" ?
I cannot decently ship a payment plugin with a core hack  ;D
Best Regards, Hervé Boinnard - Irish Time (GMT)
Joomla! multilingual website and online business made easy - https://www.puma-it.ie

3D Secure v1 (3DS1) & Strong Customer Authentication (SCA)! Stripe.com payment plugin for VirtueMart 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/stripe-for-virtuemart
Authipay (AIB Merchant Services) for VirtueMart 2 & 3: https://www.puma-it.ie/en/joomla-and-virtuemart-extensions/authipay-aib-merchant-services-for-virtuemart