News:

Looking for documentation? Take a look on our wiki

Main Menu

Emergency Case: Redirect to PayPal only in debug mode

Started by michel777, November 22, 2016, 22:28:08 PM

Previous topic - Next topic

michel777

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

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 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

michel777

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

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 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

michel777

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

I have disabled the one step checkout (s. attached file - built_in_checkout). Nearly the same.

Jörgen

Hello

QuoteJoomla:          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.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

GJC Web Design

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 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

michel777

#8
I tested it without opc too. The same. See built_in_checkout.txt.

michel777

Dear Forum-Members,

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

Thanks a lot in advance,

Michel

Studio 42

Hi,
I have do a cart, cancelled on paypal, but else all is ok.