x

transaciton api response

Hello i am using transaction api for payment process and in return i am getting success response but i am not able to access invidual varible from that response can you help me with that?

 

Here is response that i am getting

 

SquareConnect\Model\ChargeResponse Object
(
    [errors:protected] => 
    [transaction:protected] => SquareConnect\Model\Transaction Object
        (
            [id:protected] => c62OZf15HQVUlRhSlPYQpXcVRPrWr3KVXAEDEd52hA03cnbor8xIHMhO
            [location_id:protected] => CBASEHnEJTUgWx_x7Atbo0VRqY4gAQ
            [created_at:protected] => 2018-07-27T08:33:45Z
            [tenders:protected] => Array
                (
                    [0] => SquareConnect\Model\Tender Object
                        (
                            [id:protected] => c5e19a3f-d1ca-5938-7137-f66db69caa4e
                            [location_id:protected] => CBASEHnEJTUgWx_x7Atbo0VRqY4gAQ
                            [transaction_id:protected] => c62OZf15HQVUlRhSlPYQpXcVRPrWr3KVXAEDEd52hA03cnbor8xIHMhO
                            [created_at:protected] => 2018-07-27T08:33:45Z
                            [note:protected] => Online Transaction
                            [amount_money:protected] => SquareConnect\Model\Money Object
                                (
                                    [amount:protected] => 200
                                    [currency:protected] => USD
                                )

                            [tip_money:protected] => 
                            [processing_fee_money:protected] => 
                            [customer_id:protected] => 
                            [type:protected] => CARD
                            [card_details:protected] => SquareConnect\Model\TenderCardDetails Object
                                (
                                    [status:protected] => CAPTURED
                                    [card:protected] => SquareConnect\Model\Card Object
                                        (
                                            [id:protected] => 
                                            [card_brand:protected] => VISA
                                            [last_4:protected] => 5858
                                            [exp_month:protected] => 
                                            [exp_year:protected] => 
                                            [cardholder_name:protected] => 
                                            [billing_address:protected] => 
                                            [fingerprint:protected] => d6be690250e3d72d86ed08ba7c256a09eb97a9f7403b2f357891d5b42f015024
                                        )

                                    [entry_method:protected] => KEYED
                                )

                            [cash_details:protected] => 
                            [additional_recipients:protected] => 
                        )

                )

            [refunds:protected] => 
            [reference_id:protected] => 
            [product:protected] => EXTERNAL_API
            [client_id:protected] => 
            [shipping_address:protected] => 
            [order_id:protected] => 
        )

)

 

609 Views
Message 1 of 2
Report
1 REPLY 1

Hello @NextLevelTele, you'll need to use the Getter methods to obtain the properties.  

580 Views
Message 2 of 2
Report