I have the following array:
["entity_id"] => "1"
["customer_id"] => "18"
["public_hash"] => "xxxxxxxxxx041e6f5246f041429424422795137118223d73bb6197410f9cbc77"
["payment_method_code"] => "braintree"
["type"] => "card"
["created_at"] => "2018-12-19 21:24:13"
["expires_at" => "2020-06-01 00:00:00" "gateway_token"] => "8cx9y7"
["details"] => "{"type":"AE","maskedCC":"0005","expirationDate":"05\\\\\\\\/2020"}"
["is_active"] => "1"
["is_visible"] => "1"
And I'm trying to get the values from ["details"] separately (type, maskedCC, expirationDate)
Using $details = $card->getData('details'); I'm able to narrow it down to:
{"type":"AE","maskedCC":"0005","expirationDate":"05\/2020"}
From there, I'm not sure how to get the values AE, 0005, 05/2020.