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.”

How to get Shipment item collection by shipment item id Magento 2?

You can retrieve the shipment item data by shipment item id using Magento 2 by Shipment Item RepositoryInterface.

Used Shipment item repository interface to get shipment data:
Magento\Sales\Api\ShipmentItemRepositoryInterface Continue reading “How to get Shipment item collection by shipment item id Magento 2?”