Author Topic: Emergency Case: Redirect to PayPal only in debug mode  (Read 3625 times)

michel777

  • Beginner
  • *
  • Posts: 26
  • A beginner
Emergency Case: Redirect to PayPal only in debug mode
« on: November 22, 2016, 22:28:08 pm »
Hi,

redirect to PayPal doesn't work anymore. Here the debug entries:

Paypal.2

016-11-22 19:20:21 DEBUG PayPal SetExpressCheckout Request variables:: Array
(
    [METHOD] => SetExpressCheckout
    [version] => 104.0
    [USER] => mihalka_api1.dataminings.com
    [PWD] => **MASKED**
    [BUTTONSOURCE] => VirtueMart_Cart_PPA
    [SIGNATURE] => **MASKED**
    [CURRENCYCODE] => CHF
    [IPADDRESS] => 85.7.212.190
    [PAYMENTREQUEST_0_CURRENCYCODE] => CHF
    [RETURNURL] => http://davidintheshop.com/index.php?option=com_virtuemart&view=cart&task=setpayment&expresscheckout=done&pm=2&Itemid=195&lang=en-GB
    [CANCELURL] => http://davidintheshop.com/index.php?option=com_virtuemart&view=cart&expresscheckout=cancel&Itemid=195&lang=en-GB
    [ADDROVERRIDE] => 0
    [NOSHIPPING] => 0
    [MAXAMT] => 3000
    [LOGOIMG] => http://davidintheshop.com/images/stories/virtuemart/vendor/
    [LOCALECODE] => GB
    [PAYMENTREQUEST_0_PAYMENTACTION] => Sale
    [PAYMENTREQUEST_0_AMT] => 332.3
)

2016-11-22 19:20:21 DEBUG PayPal response:: Array
(
    [TOKEN] => EC-8R9027559M538002R
    [TIMESTAMP] => 2016-11-22T19:20:22Z
    [CORRELATIONID] => 18096ce8830bd
    [ACK] => Success
    [VERSION] => 104.0
    [BUILD] => 000000
    [custom] => bpqqinbt1ar425cg8brrpf7te2
    [method] => SetExpressCheckout
)

PayPal.7

2016-11-22 19:23:58 DEBUG plgVmConfirmedOrder: order number: RAW7062
2016-11-22 19:23:58 MESSAGE plgVmConfirmedOrder: Amount/Currency stored 357 paymentcurrency 27 orderusercurrency27

PayPal.6

No entries

If I turn on the debug mode, it works.

Please help me.

Thanks,

Michel



GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9490
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Redirect to PayPal only in debug mode
« Reply #1 on: November 22, 2016, 22:54:54 pm »
versions?

works in debug.. I guess u mean you click and it goes to PP?

the redirect is JS.. have u any JS errors on the page which will prob stop the redirct
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

michel777

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Redirect to PayPal only in debug mode
« Reply #2 on: November 23, 2016, 00:00:41 am »
HI GJC Web Design,

thanks for fast response.

1) Environment:

Joomla:          Joomla! 3.4.8 Stable [ Ember ] 24-December-2015 19:30 GMT
PHP Version:   5.6.27-he.0
Virtuemart:     Release of 3.0.18

2) Working in debug mode: the debug page opens and at the bottom : Redirect to PayPal -> from there is all ok.
3) No significant errors (see attached console).

Any further ideas ?

Thanks in advance, warm regards,

Michel

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9490
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Redirect to PayPal only in debug mode
« Reply #3 on: November 23, 2016, 00:06:10 am »
can u see the JS in the source?

jQuery(document).ready(function($){
               jQuery("body").addClass("vmLoading");
              var msg="Redirecting to Paypal";
               jQuery("body").append("<div class=\"vmLoadingDiv\"><div class=\"vmLoadingDivMsg\">"+msg+"</div></div>");
             jQuery("#vmPaymentForm").submit();
         })
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

michel777

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Redirect to PayPal only in debug mode
« Reply #4 on: November 23, 2016, 07:54:04 am »
Hi  GJC Webdesign,

no, I only see:

<script src="/plugins/vmpayment/paypal/paypal/assets/js/site.js?vmver=9293" type="text/javascript" defer="defer"></script>
...
  69       Joomla.JText.load({"SYSTEM_ONESTEPCHECKOUT_LOGIN_ERROR":"User or Password false!","SYSTEM_ONESTEPCHECKOUT_LOGOUT_ERROR":"Can't Logout","SYSTEM_ONESTEPCHECKOUT_SETSHIPMENT_ERROR":"Can't change shipping method","SYSTEM_ONESTEPCHECKOUT_TERMS_ERROR":"Please accept the General Terms and Conditions to proceed","SYSTEM_ONESTEPCHECKOUT_SHIPMENT_SELECT":"Please select a Shipment","SYSTEM_ONESTEPCHECKOUT_PAYMENT_SELECT":"Please select a payment","SYSTEM_ONESTEPCHECKOUT_DELIVERY_SELECT":"Please fill delivery date","SYSTEM_ONESTEPCHECKOUT_BILLTO_SELECT":"Please enter the required fields","SYSTEM_ONESTEPCHECKOUT_COUNTRY_SELECT":"Please select a country","SYSTEM_ONESTEPCHECKOUT_STATE_SELECT":"Missing value for State \/ Province \/ Region","SYSTEM_ONESTEPCHECKOUT_CANNOT_UPDATE_PRO":"Can't update product","SYSTEM_ONESTEPCHECKOUT_ACCOUNT_SELECT":"Please enter the required fields","SYSTEM_ONESTEPCHECKOUT_RISGISTER_ERROR":"Can't register user, Please check email and user again","OPC_PASS_FALL":"Confirm password false!","SYSTEM_ONESTEPCHECKOUT_NOT_EMAIL":"Please enter a valid email address.","SYSTEM_ONESTEPCHECKOUT_NOT_NUMBER":"Please enter a valid zip code!","SYSTEM_ONESTEPCHECKOUT_LOGIN_ERROR_ACTIVE":"Login denied! Your account has either been blocked or you have not activated it yet.","JLIB_FORM_FIELD_INVALID":"Invalid field:&#38;#160"});
 988             <div class="opc-module" id="opc-confirm"
1006         #opc-wapper > .opc-module#opc-confirm > .opc-module-content{border: 0;}
1029         <div class="submit_order"><span id="submit_order_done">Confirm Order</span></div>
1034     <input type="hidden" value="1" name="confirm"/>

The pages are (with and without debugging) nearly the same (see attached files).

Thanks again (and again) in advance !

Warm regards,

Michel






michel777

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Redirect to PayPal only in debug mode
« Reply #5 on: November 23, 2016, 08:48:38 am »
I have disabled the one step checkout (s. attached file - built_in_checkout). Nearly the same.

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 2587
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: Redirect to PayPal only in debug mode
« Reply #6 on: November 23, 2016, 08:52:42 am »
Hello

Quote
Joomla:          Joomla! 3.4.8 Stable [ Ember ] 24-December-2015 19:30 GMT

Update to Joomla 3.6.4 Before You get into trouble !

regards

Jörgen @ Kreativ Fotografi
Joomla 3.9.8
Virtuemart 3.4.x
Olympiantheme Hera (customized)

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9490
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: Redirect to PayPal only in debug mode
« Reply #7 on: November 23, 2016, 10:20:36 am »
and->  opc-module 

it's a 3rd party chk out so I would contact the seller

the script is extremely basic JS redirect that comes directly from the paypal plugin helper when debug is off
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

michel777

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Redirect to PayPal only in debug mode
« Reply #8 on: November 23, 2016, 11:58:09 am »
I tested it without opc too. The same. See built_in_checkout.txt.

michel777

  • Beginner
  • *
  • Posts: 26
  • A beginner
Re: Emergency Case: Redirect to PayPal only in debug mode
« Reply #9 on: November 23, 2016, 21:05:06 pm »
Dear Forum-Members,

this is an emergency case, please help us. Any tips / hints are welcome !

Thanks a lot in advance,

Michel

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4243
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Emergency Case: Redirect to PayPal only in debug mode
« Reply #10 on: November 28, 2016, 22:53:17 pm »
Hi,
I have do a cart, cancelled on paypal, but else all is ok.