Всем здравствуйте!
Подскажите пожалуйста, как можно из представленного ниже массива можно получить идентификатор платежа (payment_id)? Пробовал декодировать json_decode(json_encode($response), true)), но из этого почему-то ничего не вышло.
YooKassa\Request\Payments\CreatePaymentResponse object {
*YooKassa\Model\Payment*_id => (string) 2c24fa2c-000f-5000-9000-183744e0425f
*YooKassa\Model\Payment*_status => (string) pending
*YooKassa\Model\Payment*_recipient => YooKassa\Model\Recipient object {
_accountId => (string) 320
_gatewayId => (string) 2081
*YooKassa\Common\AbstractObject*unknownProperties => array(0)
}
*YooKassa\Model\Payment*_amount => YooKassa\Model\MonetaryAmount object {
_value => (int) 30000
_currency => (string) RUB
*YooKassa\Common\AbstractObject*unknownProperties => array(0)
}
*YooKassa\Model\Payment*_description => (string) Описание
*YooKassa\Model\Payment*_paymentMethod => null
*YooKassa\Model\Payment*_createdAt => DateTime object {
date => (string) 2023-06-21 12:00:44.526000
timezone_type => (int) 2
timezone => (string) Z
}
*YooKassa\Model\Payment*_capturedAt => null
*YooKassa\Model\Payment*_confirmation => YooKassa\Model\Confirmation\ConfirmationEmbedded object {
confirmationToken => (string) ct-2c24fa2c-000f-5000-9000-183744e0425f
*YooKassa\Model\Confirmation\AbstractConfirmation*_type => (string) embedded
*YooKassa\Common\AbstractObject*unknownProperties => array(0)
}
*YooKassa\Model\Payment*_refundedAmount => null
*YooKassa\Model\Payment*_paid => (bool) fal...