News:

Looking for documentation? Take a look on our wiki

Main Menu

Edit page "Please wait while redirecting to paypal"

Started by webocard, August 31, 2018, 23:37:04 PM

Previous topic - Next topic

webocard

--------

GJC Web Design

the html is created in the Paypal plugin

\plugins\vmpayment\paypal\paypal\helpers\paypalstd.php

      if (vmconfig::get('css')) {
         $msg = vmText::_('VMPAYMENT_PAYPAL_REDIRECT_MESSAGE', true);
      } else {
         $msg='';
      }

      vmJsApi::addJScript('vm.paymentFormAutoSubmit', '
           jQuery(document).ready(function($){
               jQuery("body").addClass("vmLoading");
              var msg="'.$msg.'";
               jQuery("body").append("<div class=\"vmLoadingDiv\"><div class=\"vmLoadingDivMsg\">"+msg+"</div></div>");
             jQuery("#vmPaymentForm").submit();
         })
      ');

and passed to the orderdone.php page

components\com_virtuemart\views\cart\tmpl\orderdone.php



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