私は次のオブジェクトを持っています。この場合、GrossAmount (1.10) の値を変数として取得するにはどうすればよいですか?
私が試してみました:
$gross = $object->GrossAmount->_;
一方$id = $object->GrossAmount->currencyID;
GBPの現在のコードを教えてください
しかし、これは機能していません。
Array
(
[TransactionID] => 9BBXH1113VA716445A
[ParentTransactionID] =>
[ReceiptID] =>
[TransactionType] => express-checkout
[PaymentType] => instant
[PaymentDate] => 2013-02-28T18:26:43Z
[GrossAmount] => stdClass Object
(
[_] => 1.10
[currencyID] => GBP
)
[FeeAmount] => stdClass Object
(
[_] => 0.21
[currencyID] => GBP
)
[TaxAmount] => stdClass Object
(
[_] => 0.00
[currencyID] => GBP
)
[ExchangeRate] =>
[PaymentStatus] => Completed
[PendingReason] => none
[ReasonCode] => none
)