I'm using Opencart 1.5.1 and trying to implement pay pal pro through iframe. I got a module but it doesn't work. In logs I found:
Fatal error: Call to a member function encrypt() on a non-object in .../controller/payment/pp_standard.php on line
When I try to add
$registry->set('encryption', new Encryption($config->get('config_encryption')));
to index.php I got blank homepage and the checkout stops at the moment of choosing payment method (it's not visible). Any ideas how to reslove thios without upgrading OC ( got many changes to template files which fails to work after upgrade).
Kind regards,
Arek
also set your error reporting to on so you can see errors and not just blank pages.
Related
Whenever I try to checkout I am getting infinite loader. When I try to debug I found there is a Javascript error in the console. As you can see in the screenshot.
When I debug the javascript file lib/web/jquery/jquery.validate.js then I found it is not an issue of a payment method rather it belongs to the shipping address. And in my case the issue start when I start to use Amasty Onestep checkout extension. I hope it will help you.
Hy,
Magento version 1.9.0.1
I have made a new cms page and inserted this code initially {{block type='core/template' name='contactForm' form_action='/contacts/index/post' template='contacts/mycontactform.phtml'}} . Created another form called mycontactform.phtml in the same folder as the form.phtml. After submit i get this error: `The requested URL /contacts/index/post was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.`
Then i have tried with the standard form {{block type='core/template' name='contactForm' form_action='/contacts/index/post' template='contacts/form.phtml'}} . I get same error.
I have to mention that Contact us page it's working with form.phtml.
If anyone knows, please help.
Thank you,
Try doble quotes instead, this works for me:
{{block type="core/template" name="contactForm" form_action="/contacts/index/post" template="contacts/form.phtml"}}
I just recently started working with the PayPal API to start processing credit cards for a client and have run into an odd issue. I managed to get everything mostly working (the 400 Bad Request error that is all over SO is still outstanding for me) minus one thing. When I try to run a CC against the sandbox area with nothing specified for line 2 of the address I see the following error get logged:
Error Response: {"name":"VALIDATION_ERROR","details":[{"field":"payer.funding_instruments[0].credit_card.billing_address.line2","issue":"Must not be blank"}],"message":"Invalid request - see details","information_link":"https://developer.paypal.com/webapps/developer/docs/api/#VALIDATION_ERROR","debug_id":"cbaa2c4dfdb77"}
Why would address 2 be required? Their own documentation (https://developer.paypal.com/webapps/developer/docs/api/) says it isn't so I'm completely lost here.
This is using the RestAPISDK library downloaded from their GitHub instance and everything I'm doing is in C#.
When you have a blank value in a REST API call it will return an error. It isn't required to provide a line2 value but if you include the variable with a blank value the system will flip out. Remove the variable entirely and you should be good to go.
I doing paypal express checkout in jsp on sandbox with out using the sdk I am getting the ACK as sucess when generating the token after that when i redirected to sandbox now it shows error message on sandbox as
You have requested an outdated version of PayPal. This error often results from the use of bookmarks.
This is the Ack response i got
TOKEN=EC%2d5PT30649GD612951T&TIMESTAMP=2012%2d03%2d04T16%3a44%3a18Z&CORRELATIONID=4ed0e9de9ec8a&ACK=Success&VERSION=84%2e0&BUILD=2571254
I decoded the response using URLDecoder and redirected to the sandbox
if (ack.equals("Success")) { String logurl = "https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=express-checkout&token="+token;
response.sendRedirect(logurl);
}
Thanks in advance for any suggestions and answers
If you are receiving this error, it is best to check the url you are redirecting.
Documentation says that the URL is
https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout
Careful with the _express-checkout part. If you are using an ide (like Visual Studio) that marks the urls as links, you might think that it is a space (as it becomes invisible) and at the first error you encounter, you might delete the underscore char.
I got it working and I am answering because i found many one have same error This error occurs mainly due to any of the samll errors or changes in your NVP if you are using it.
I think This link will be helps , deals with "You have requested an outdated version of PayPal"
I am using "webtechnick CakePHP-Facebook-Plugin" for my site for login and authentication. My site is in cakephp. I have placed the plugin in proper folder as guided in the video. But when I am running my site I am getting the error:
Fatal error: Call to undefined method Facebook::login() in
/home/depasser/public_html/var/www/html/fb_app/app/views/elements/login.ctp on line 12
I have tried a lot to solve this issue but haven't succeeded. Can anyone guide me how I can solve this issue?
Is the helper in your controller for this view, if the 'Facebook.Facebook' helper is not there it wont work.