I have a response that provides an array in this format
Array (
[error] => Array (
[code] => BAD_REQUEST_ERROR
[description] => Payment failed
[metadata] => Array (
[payment_id] => pay_EVI7BJdvs2uxtq
[order_id] => order_EVI6zC5ScMjejv
)
)
)
How can i access the code and description from this multidimensional array ?