cancel
Showing results for 
Search instead for 
Did you mean: 

How to monitor payments (exceptions, transactions)

How to monitor payments (exceptions, transactions)

I integrated mercado pago and paypal to magento 2.0 , how to user new relics to monitor these payments ? 

2 REPLIES 2

Re: How to monitor payments (exceptions, transactions)

I used this query in new relics "SELECT message FROM Log WHERE message like '%CRITICAL: Payment%' and filePath LIKE '%system.log%' SINCE 3 month ago" and create alerts.

It shows below records to indicate the mercado pago has some issue.  But I'm not sure if I can use the query above for other payments like paypal or cybersource (use this keyword '%CRITICAL: Payment%'  to search in system.log file and create alerts in new relics)

-----------

Aug 8, 2024 09:10:32.677
[2024-08-08T02:10:32.677212+00:00] report.CRITICAL: Payment Error: No podemos procesar su pago. Utilice otro método de pago o comuníquese con el emisor de su tarjeta. [] []
 
-----------

Re: How to monitor payments (exceptions, transactions)

To monitor Mercado Pago and PayPal payments in Magento 2 using New Relic:

  1. Enable New Relic for Magento 2 – make sure the New Relic PHP agent is installed and configured.

  2. Track custom transactions – wrap payment calls in newrelic_name_transaction() or custom instrumentation to monitor authorize, capture, and refund calls.

  3. Log exceptions – use newrelic_notice_error($exception) to capture failed payments or errors.

  4. Dashboard & alerts – set up dashboards for payment endpoints and configure alerts on failed transactions or response time spikes.

This way, you can monitor exceptions, transaction flow, and performance metrics in real time.