Jump to content

Paypal BWDisplay express_checkout


Bratsaki

Recommended Posts

Hello,

 

I have prestashop 1.5.0.17

 

Today i got this error on my paypal module! I am using Version: 3.2.1

 

PHP Fatal error: Class 'BWDisplay' not found in /home/diachron/public_html/e-shop/modules/paypal/express_checkout/submit.php on line 281

 

When i checkout it doesn't load at all!

 

http://www.diachrong...-shop/index.php

 

Can you help me please?

Edited by Bratsaki (see edit history)
Link to comment
Share on other sites

Hi,

 

The BWDisplay error is being corrected. As I know you are using another module including the backward compatibility folder.

This module is loaded before the PayPal module, that is why you are having this message.

 

We are releasing the backward compatibility as a new module and it will be added natively into the solution (PS 1.4). This version will be loaded before all other modules and will make the BWDisplay class accessible.

 

I hope it will helps.

The module will be available soon (and the new PayPal too).

Link to comment
Share on other sites

I'm using prestashop 1.4.9.0

1. installed backward module

2. then new paypal 3.2.1.

and got

ERROR !

 

You need to provide your PayPal API credentials in step 3 in order to accept payments.

But I have provided it already ?!

But it is provided with all credentials required for the API

Please advise how to proceed

Link to comment
Share on other sites

The fix will be published soon...

 

The error is on line 281, replace :

$display = new BWDisplay();

With :

if (_PS_VERSION_ < '1.5')

$display = new BWDisplay();

else

$display = new FrontController();

 

That should resolve the problem.

I hope it will help

which file should edit ?

Link to comment
Share on other sites

I corrected it but still

in BO I got

You need to provide your PayPal API credentials in step 3 in order to accept payments.

it is provided and in front

1. after installing the module cant change the language

2. cant change the currency

3. PP module does not appear in payment methods in the final step

 

:(

Link to comment
Share on other sites

Great !!! Now it works

now I can change currency, langugage in front and paypal is active

In BO - there is no grey fields or errors in paypal module .

 

Just one thing that is different from older 2.8.x version of the module

when customer select different currency than the 24 supported by paypal I got

 

Please refer to logs:

  • PayPal response:
  • TIMESTAMP -> 2012-09-25T15:05:42Z
  • L_ERRORCODE0 -> 10605
  • L_SHORTMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details.
  • L_LONGMESSAGE0 -> Currency is not supported
  • L_SEVERITYCODE0 -> Error

With older module when customer selected currency is different than default setted up in BO /in my case Euro/ when customer is redirected to paypal it is in the currency selected in BO. Is there any chance to get this functionallity back ?

Edited by ariko (see edit history)
Link to comment
Share on other sites

I set the ¨Force compile¨ to ¨Yes¨ and ¨Cache¨ to ¨No¨ in ¨Preferences > Performance¨ of your back-office.

You should set these two values this way each time you install / configure / remove ... a new module or anything else.

When everything is OK you can set up back to the old values.

About the currency it is not possible right now but I will try to implement this feature asap.

Regards.

  • Like 2
Link to comment
Share on other sites

I set the ¨Force compile¨ to ¨Yes¨ and ¨Cache¨ to ¨No¨ in ¨Preferences > Performance¨ of your back-office.

You should set these two values this way each time you install / configure / remove ... a new module or anything else.

When everything is OK you can set up back to the old values.

About the currency it is not possible right now but I will try to implement this feature asap.

Regards.

I got it and I will have in mind the these setting when installing or configuring new modules.

Thanks for your efforts I appreciate it and I'm sure that other users are also greatefull to you.

I will wait for this currency feature eagerly. We are hurring to open our e-shop based on prestashop :rolleyes:

Edited by ariko (see edit history)
  • Like 1
Link to comment
Share on other sites

Hi, I am having the same problem. I have installed backward compatibility and it still doesnt work. Please let me know what you need from me. Prestashop version: 1.5.0.17 Paypal 3.2.1

 

The backward compatibility is only working on PrestaShop 1.4. Don´ t use it on a 1.5. Coud you please provide me accesses to your shop by PM ?

  • Like 1
Link to comment
Share on other sites

HI,

 

I removed backward compatibility, and changed the BWDisplay code that you suggested. The error log now shows

 


PHP Parse error:  syntax error, unexpected T_IF in /home/nationwi/public_html/modules/paypal/express_checkout/submit.php on line 287
[26-Sep-2012 10:22:33 UTC]

 

does that help?

 

There is an error in your code, something is missing. If you are using PS 1.4 you need to keep the backward compatibility !

Good luck.

Link to comment
Share on other sites

PS 1.5.017 PAYPAL 3.2.2 ... Someone can help me (thanks a lot)? I got this error when I submit the payment:

 

 

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Link to comment
Share on other sites

  • 1 month later...

I set the ¨Force compile¨ to ¨Yes¨ and ¨Cache¨ to ¨No¨ in ¨Preferences > Performance¨ of your back-office.

You should set these two values this way each time you install / configure / remove ... a new module or anything else.

When everything is OK you can set up back to the old values.

About the currency it is not possible right now but I will try to implement this feature asap.

Regards.

 

I am also eagerly awaiting the return of this feature.

Can you post a link with the updated module. Thanks a lot.

Edited by Still V (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

PrestaShop 1.5.2.0

PayPal module v 3.3, updated yesterday

Still broken.

 

If you have found a solution to the issue, why are you still pushing broken updates to people?

Be reasonable and just commit the fixes you find in the repo. Please.

 

http://forge.prestashop.com/browse/PNM-716

Edited by EV Network (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...

The fix will be published soon...

 

The error is on line 281, replace :

$display = new BWDisplay();

With :

if (_PS_VERSION_ < '1.5')

$display = new BWDisplay();

else

$display = new FrontController();

 

That should resolve the problem.

I hope it will help

 

I had Paypal version 3.3 before and this fix solve my ERROR 500 issue when I click on the PayPal logo on the front page display. It supposed to point to the an about.php page.

 

Yesterday, I upgrade my PayPal module to version 3.4. Now this fix cannot be applied as the new submit.php has a new clause of code. I am getting the same error.

 

It seems that the file submit.php has some sort of similar code to show the proper file, but I guess it does not. Could someone please let me know the fix to this? Thank you so much.

Link to comment
Share on other sites

  • 1 month later...

How can i resolve this problem, please help..

 

 

 

 

 

 

A client has encountered a problem with the module PayPalAPI, see the report: PayPal response:

TIMESTAMP -> 2013-02-05T09:29:37Z

L_ERRORCODE0 -> 10605

L_SHORTMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details.

L_LONGMESSAGE0 -> Currency is not supported

L_SEVERITYCODE0 -> Error

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...

Hello,

 

I get an email from paypal, that they could not find this file: www.SHOP.de/modules/paypal/validation.php

 

What must I do?

There is no such file in the paypal-module folder.

The folder permission is also set to 755

 

PS: 1.5.4.1

PayPal: 3.5.5

 

PayPal configuration:

 

Use express-checkout: No

Sandbox: real env.

Payment: direct

 

I also tried to just copy the "validation.php" from my Prestashop 1.4 but an error occures:

 

Fatal error: Call to undefined method PayPal::getL() in /html/shop/modules/paypal/validation.php on line 67

Link to comment
Share on other sites

  • 1 month later...
Please refer to logs:
  • PayPal response:
  • TIMESTAMP -> 2012-09-25T15:05:42Z
  • L_ERRORCODE0 -> 10605
  • L_SHORTMESSAGE0 -> Transaction refused because of an invalid argument. See additional error messages for details.
  • L_LONGMESSAGE0 -> Currency is not supported
  • L_SEVERITYCODE0 -> Error

 

Go to BO-->Modules->paiement->curency restriction

and chose in paypal columns "custumer currency" and save the change.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...