2016-09-30 31 views
1

這裏我返回對象如下我如何得到[RESPONSE_DATA:保護]從我返回的對象,我嘗試了一些對象數組轉換

QuickPay\API\Response Object 
(

    [response_data:protected] => {"id":35979283,"merchant_id":20944,"order_id":"14752117819630","accepted":false,"type":"Payment","text_on_statement":null,"branding_id":null,"variables":{},"currency":"DKK","state":"initial","metadata":{"type":null,"origin":null,"brand":null,"bin":null,"last4":null,"exp_month":null,"exp_year":null,"country":null,"is_3d_secure":null,"hash":null,"number":null,"customer_ip":null,"customer_country":null,"fraud_suspected":false,"fraud_remarks":[],"nin_number":null,"nin_country_code":null,"nin_gender":null},"link":null,"shipping_address":null,"invoice_address":{"name":"Vivek U","att":null,"street":null,"city":null,"zip_code":null,"region":null,"country_code":null,"vat_no":null,"house_number":null,"house_extension":null,"phone_number":"12345","mobile_number":"12345","email":"[email protected]"},"basket":[],"shipping":null,"operations":[],"test_mode":false,"acquirer":null,"facilitator":null,"created_at":"2016-09-30T05:02:57Z","balance":0,"fee":null} 
) 

請任何幫助,我將不勝感激

+0

嘗試一種getter方法。 –

+0

意味着你能解釋一下嗎? –

+0

我是新來的訪問對象 –

回答

1

嘗試這,print_r($payments->asArray());

+0

感謝它的作品,我真的很感謝你的回答 –

+0

不客氣。 :) –

相關問題