Get Mollie payment API status woocommerce [closed]

I am using Woocommerce with Mollie payments.
If the payment is cancelled or failed Mollie redirect the user to the payment page on my website. For handling errors I want to know which status Mollie returns to my website so I can do something like

if(paymentStatus == 'faild'){ //do something } 

Somebody who knows to do this?