Payment has already been made for this InvoiceID (#10412: Duplicate invoice) Magento Error.

When Order placed using PayPal payment, Customers facing an error for a #10412 duplicate invoice:

PayPal gateway has rejected request. Payment has already been made for this InvoiceID (#10412: Duplicate invoice).

You can Resolve the error by Paypal Account settings steps. Continue reading “Payment has already been made for this InvoiceID (#10412: Duplicate invoice) Magento Error.”

How to Handles payment gateway failures error in Magento 2?

Every eCommerce store has integrated multiple payment gateways based on its region’s most used payment provider. The payment entity is the key component for every online order placing. Gateway is offline or online.

When developing a custom payment method, We have to handle failure error during transactions,  Handling gateway failures error in your code level improves the customer experience in your site. Continue reading “How to Handles payment gateway failures error in Magento 2?”

Create a Plugin for Save Payment Information Checkout Magento 2.

You can create a Plugin for the method SavePaymentInformation() in Magento 2 to add your logic before or after Payment information is saved.

The method will be called after a click on the Place order button from the second step of the Checkout page.

Original Class to create plugin:
Magento\Checkout\Model\PaymentInformationManagement Continue reading “Create a Plugin for Save Payment Information Checkout Magento 2.”