i've a peace of code that catch an Exception. I get the error body with $e->getMessage() and the result is the following string. Now i want to access to customer_email how can i do this?
i receive this responde from Stripe API Request
stdClass Object
(
[error] => stdClass Object
(
[charge] => ch_1F1UTrAMXDCOYAqpNzJLKFff
[code] => card_declined
[message] => Your card was declined.
[payment_intent] => stdClass Object
(
[id] => pi_1F1IwGAMXDCOYAqpSwoFHsN1
[amount_capturable] => 0
[metadata] => stdClass Object
(
[customer_name] => C B
[customer_email] => pippo@gmail.com
[order_id] => 363
)
[payment_method_options] => stdClass Object
(
[card] => stdClass Object
(
[request_three_d_secure] => automatic
)
)
[payment_method_types] => Array
(
[0] => card
)
[receipt_email] =>
[review] =>
)
[source] => stdClass Object
(
[id] => src_1F1UTnAMXDCOYAqpYOtW3GyR
[object] => source
[card] => stdClass Object
(
[exp_month] => 12
[exp_year] => 2020
[last4] => 9987
[country] => US
)
[client_secret] => src_client_secret_FWXYzYw3vPwPe4CzyveJdVMP
[created] => 1564389915
[flow] => none
[metadata] => stdClass Object
(
)
)
[type] => card_error
)
)