On click place order button we get error message
"The authorize action is not available."
How to redirect on success page or custom success page. Please help me . After I click, response message show :
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityThis indicates the payment method against which the error showing is not configured properly.
You can verify it by temporarily disable that custom payment method and check whether you can place an order. After you confirmed the issue is related to the custom payment method, then double check all the configurations related to that custom payment method.
check you config.xml file remove this line or comment this
<payment_action>authorize</payment_action>
then remove cahche and check again
Open your payment method model and add param to your payment class:
/**
* Payment Method feature
*
* @var bool
*/
protected $_canAuthorize = true;
This param is false by default
That error shows when you provide no proper data on "Place Order" action. Try to debug where the problem is. If you make a frontend processed payment transaction, then you must provide some response data to backend.
You have to goto your VendorName/ModuleName/etc/config.xml file path. In that config.xml file
<payment_action>authorize</payment_action>
Go to your VendorName/ModuleName/Model/PaymentMethod.php
protected $_canAuthorize = 'true';