How to get Customer Order collection by Customer Id Magento 2?

Get Customer Order collection using Magento 2 Programmatically is a simple task using creating a single Block class in the module.

Customer has multiple orders and we have requirement like gather all the customer orders for a site, in this case this article is used. Continue reading “How to get Customer Order collection by Customer Id Magento 2?”

Error PayPal gateway has rejected request. Security header is not valid (#10002: Security error) PHP Magento 2.

When you have set up a Payment Method as Paypal for your eCommerce store and might be you have faced the error of the Paypal gateway has rejected the request in Magento 2 or PHP Web application.

The error will be,
PayPal gateway has rejected the request. Security header is not valid (#10002: Security error) Continue reading “Error PayPal gateway has rejected request. Security header is not valid (#10002: Security error) PHP Magento 2.”

Delete Shipment item record by item id Magento 2.

The shipment item record will be available on the Magento 2 sales_shipment_item table.

The table contains the list of shipment item records with the product item level. When you delete the record, a record will be deleted from the sales_shipment_item table. Continue reading “Delete Shipment item record by item id Magento 2.”