Paypal token null, One step chekout Magento - magento

Hi I'm building a custom checkout page using the one step checkout methods.
$checkout->initCheckout();
$checkout->saveCheckoutMethod('guest');
$checkout->saveBilling($billingAddress, false);
$checkout->saveShipping($billingAddress, false);
$checkout->saveShippingMethod($postData['shipping']['method']);
$checkout->savePayment($postData['payment']);
$checkout->saveOrder();
It works correctly with check/money and after a few adjustments with authorize.net, but with paypal using the express checkout(this the one I need) after checking in the model files I see that the token is null.
app/code/core/Mage/Paypal/Model/Express/Checkout.php
app/code/core/Mage/Paypal/Model/Api/Nvp.php
app/code/core/Mage/Paypal/Model/Express.php
Those are the files I tracked while doing the process.
Using the regular chekout(the one that comes with magento not my custom one) I can made a paypal order without any problem.
Is there another way using the magento build in functionality to make the paypal order? or anyone had this issue before and know what is going on?

Related

Paypal Standard Payment Option not showing in admin

I want to integrated the paypal standard option to my store, but unfortunately it is not visible on the admin side, Only the Express Checkout is there,
Also checked in the Dropdown of other paypal payment methods but it is empty.
any Idea how to enable it?
Happy to be of any help!
PayPal standard is deprecated a long time ago and it has been removed in all Magento 2.x versions. You can choose the PayPal express checkout option as it is pre-built and easy to configure.
Also, it has got a shortcut button [Cart & Product page] which customers prefer to use.
Thanks.
If you wish to enable PayPal Standard by default on new sites, please add the following code snippet:
add_filter( 'woocommerce_should_load_paypal_standard', '__return_true' );
This is only working on woocommerce in wordpress because Only for new installs with WooCommerce 5.5 and above, PayPal Standard which is included in WooCommerce core will not be loaded by default. Use this in functions.php
For magento read the documentation in magento update by version. Actually for paypal security reasons these changes are applied most of the framworks

Magento Hooks - Will Magento allow me to do this?

I'm going to be starting a E-Commerce project and the client is interested in using Magento. In this project, when a customer adds something to the cart, I'll need to pull them out of the flow, where they'll proceed through a custom wizard-esque area.
They basically design a document using a drag and drop interface. After they finish, that document will be saved as a PDF, and I want them redirected to checkout
So my questions are
Does Magento have hooks available for after an item is added to the
cart ?
If I pull them away to this other section of the site (Wizard
portion), changes they make will potentially add costs to
their cart. Would I still have access to products, prices, and the
cart so that I can continue to modify their cart until they return
to checkout ?
Magento users Event-Observer pattern, where you can hook into virtually any action which is performed and execute your custom code,
Refer to below links,
http://inchoo.net/category/ecommerce/magento/events-observers/
https://gist.github.com/peterjaap/6973324
http://huztechbuzz.wordpress.com/2014/04/26/complete-list-of-all-events-in-magento/
http://www.nicksays.co.uk/magento-events-cheat-sheet-1-7/
So you have to figure out which event you can use and plugin your custom code.
As long as i remember all the cart info ( products/prices ) is stored in the $_SESSION. So you can get all the information from there you need, modify it via your so-called wizzard and udpate the session information after that!
Cheers! :)

Magento: Cannot retrieve payment method instance

I recently started to have the following error when trying to proceed a paypal payment on my magento store:
Cannot retrieve payment method instance.
I have read about it on various websites, and it seems to happened when you create/modify a payment method. However, in my case, it really started happening with no reason at all, as I have not made any changes to my website recently.
I have tried to manually force paypal_standard as method in the sales_flat_order_payment and sales_flat_quote_payment tables, but it did not work.
Paypal express checkout doesn't work anymore neither.
Does anyone have an idea of how to reinstall/reset or something the paypal payment module?
Or to further debug the issue?
(I am not a programmer so I would need quite detailed information)
For anyone having this issue, I have solved it by deleting the /app/code/core folder and replacing it with a vanilla magento one. Most likely the paypal payement system module got corrupted for no reason and replacing it with vanilla version solved the problem.

PayPal Website Payments Standard Error

I currently have my online store set up using Magento and i’m adding my products, I’ve tried to implement the PayPal Website Payments Standard but there is an error. When the user has passed through to the checkout section, after entering all their details, they fail to submit the order. The button is pressed to confirm order and redirect to the PayPal payment stage, the button will load saying that it's submitting the information, but nothing happens, it starts processing, then never goes through to the page. I've checked that the extension for Mage_paypal is enabled and it is.
If you would like try purchasing one of the test products on www.scarletkisses.com at the moment, you’ll be able to see what I mean.
Thanks.
2 things ..
Make sure that you have index management and cache management done
Try disabling and then enabling Mage_PayPal Module[Reindex the magento database after that]

Magento 1.7.0.2 custom payment methods not showing on frontend checkput page

Magento 1.7.0.2 custom payment method not showing on front end checkout page
I am trying to create a custom payment method to connect to an external payment provider.
But no mater what module I am building or using, my new payment method will not show on front end, in the checkout page.
I have tried the create payment module tutorial at:
http://www.magentocommerce.com/wiki/5_-_modules_and_development/payment/create-payment-method-module
and the really great tutorial at:
http://www.junaidbhura.com/how-to-make-a-custom-magento-payment-extension-for-an-external-gateway/
The modules are built and I can see and configure them on admin panel.
But the new payment option will not show on front end.
Following some tips I found on the topic I have tried:
Making sure that the currency is set correctly in both modules and
store.
make sure that allowed countries are allowed in module
I am working with cache disabled and just to make sure flushing it every time a I
change something, (either through system or directly at var/cache folder).
I have disabled two other modules I previously installed:
CurrencyManager & Skipstep1.
I will greatly appreciate any help, as this is the only thing left for me to get my store online :), and I could not find a solution for a few days now.
Thank you

Resources