Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modify Magento PayPal PayFlow Pro Response Messages

By default, Magento shows the actual response from PayPal (PayFlow Pro) which isn't always that nice or friendly. For example one of the fraud prevention messages came back as "Declined by Fraud Service". Is there a way I can modify the response that is displayed to give a friendlier response?

What Magento core files do I need to copy and then modify to override the default pass-through of Paypal messages?

Thanks for your help!

like image 413
stitz Avatar asked Nov 20 '15 18:11

stitz


1 Answers

Here is where the error message is being set (Payflow Link): https://github.com/OpenMage/magento-mirror/blob/4bc632edf76c1008b7dccde3e5c7357ce2c00087/app/code/core/Mage/Paypal/Model/Payflowlink.php#L282

And for Payflow Pro: https://github.com/OpenMage/magento-mirror/blob/4bc632edf76c1008b7dccde3e5c7357ce2c00087/app/code/core/Mage/Paypal/Model/Payflowpro.php#L437

like image 188
Evan Avatar answered Oct 23 '22 20:10

Evan