2 Comments

The requested Payment Method is not available. Force Set Method

change URL as SEO friendly?
Orders disappeared

I have purchase order set as the only active payment method. Checkout throws the “requested method not available” error. I want to force set the payment method when it doesn’t have a method set.

I’d like to do this in the theme, not the core.

Related Posts

  • Make payment method active only for API (1)
    To start I have already modified the check/money order payment method to be available only in admin (That worked, but not via the API) The problem is that the method is not available to the V1 API. Here is how I am setting the cart $cart = $proxy->call( $sessionId, […]
  • PayPal Express Checkout 'Amount Paid' not showing (0)
    I have PayPal Express Checkout activated as a payment method on my store. When a customer orders I receive the money via PayPal and the order is stored in Magento, however the 'amount paid' shows as 0.00. Is there a setting I am missing to get the payment amount to show?
  • PayPal Express Checkout 'Amount Paid' not showing (0)
    I have PayPal Express Checkout activated as a payment method on my store. When a customer orders I receive the money via PayPal and the order is stored in Magento, however the 'amount paid' shows as 0.00. Is there a setting I am missing to get the payment amount to show?
  • Is it possible to create an order only if payment is completed? (0)
    I am using Magento 1.9.2 and i want to modify one of my payment methods. When this specific method is selected and the user clicks on Complete Order they are redirected on another website where they are able to make their payment. When the payment is done, the payment processor a.k.a […]
  • How to purchase order by using both my credit points and payment method (0)
    I want to purchase order by using both my credit points and payment method. if user have 1000 credit points and product price is 2000.then user can purchase by using 1000 credit points and after that he paid 1000 through any paypal method.
  • How to get max_order_value for Payones payment methods? (1)
    We want show our users that they reached a certain limit for some payment methods in their basket. That is why I need to know each max order value for these payment methods. But when I try to use Payones function: $methods = […]
  • n98-magerun doesn't throw errors? (0)
    I am working on a magerun command, but it seems that errors are not triggered. E.g. protected function execute(InputInterface $input, OutputInterface $output) { $this->detetMagento($output); } If I misspell detectMagento and run the command, it does nothing, I would expect […]
  • Programmatically capture all invoice on order online (0)
    I am working on a cron job that will capture all invoices on order online. This is what I have so far: // Load order $order = Mage::getModel('sales/order')->loadByIncrementId($myOrderNumber); if (!$order->getId()) throw new Exception('Invalid order number.'); if […]
  • Programmatically capture all invoice on order online (0)
    I am working on a cron job that will capture all invoices on order online. This is what I have so far: // Load order $order = Mage::getModel('sales/order')->loadByIncrementId($myOrderNumber); if (!$order->getId()) throw new Exception('Invalid order number.'); if […]
  • Magento 1.9.2.4 login error not displaying (1)
    My website - http://sdl2.alphalogichq.com/index.php/customer/account/login/ login works ok. But if there is any invalid login like: email: abc@abc.com password: 123456 It doesn't show Invalid login error. I have to force reload (CTRL + F5) so it shows the error. Why is it not […]
change URL as SEO friendly?
Orders disappeared

2 Comments on this article

  • User November 12, 2016

    You will need to update code, of course do not modify core files directly.

    This is the base file:
    core/Mage/Checkout/controllers/OnepageController.php

    This is the function that sets the payment method:
    function savePaymentAction()

    Change this line:

    $data = $this->getRequest()->getPost(‘payment’, array());

    To something like this:

    $data = array(‘method’=>’purchase_order’);

    You will need to check whether the name ‘purchase_order’ is correct.

    If you are trying to skip the payment section then you can put the code earlier in the process, making sure to save the data:
    $result = $this->getOnepage()->savePayment($data);

    Reply

  • User November 12, 2016

    I found and ended up using the answer from this post: The requested Payment Method is not available to “remind” the checkout process that the payment method is purchaseorder. This allowed the order to proceed, generate notification emails, and redirect to the success page.

    NOTE: I used this as a temporary fix. I will be moving a copy of the site to a dev server, and finding the actual issue and resolving it without modifying the core files.

    Reply

Add a comment

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax