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

How to get Payment Gateway token from the Vault Payment order Magento 2?

Get Payment Gateway token from the Order in Magento 2 will be useful in the future, if any payment related information needed for that specific transaction.

Vault payment method stores the payment’s gateway token for the order with saving credit card information for the future.

The customer has placed an order from the site with checked Save Credit Card details for the next transaction from the Payment step, Vault store the gateway token for the Payment. Continue reading “How to get Payment Gateway token from the Vault Payment order Magento 2?”

Get list of payment methods by store id in Magento 2.

You can get all the payment method list using Magento 2 by PaymentMethodListInterface interface getList() method.

You can fetch the list of all enable/disable payment method with the specific store, Payment code, and name.

You just need to pass current store id in the getAList() method of above PaymentMethodListInterface interface. You can get the Store Specific Payment list by below way, Continue reading “Get list of payment methods by store id in Magento 2.”