I am using Magento 2.4.1. In my requirement, I want to change payment_action (authorize, authorize_capture) of the PayPal payment method programmatically for some situations.
Does anybody have any idea about the exact file where we can do the modifications?
Hello @Nishu Jindal
In the file vendor\magento\module-paypal\Model\Config.php, you can create the plugin for
Go to your App Center. Click View all next to 'Accept Payments'. Click the PayPal buttons tile, then Get Started. Click View your saved buttons. Click Action next to the button you want to edit and select Edit button.