Home
Find the answer to your question
How can I process notification types other than the types provided in the sample code?
This PHP 5 Notification sample introduces eBay Platform Notifications in a PHP context. The provided listener.php provides sample code on how to process two types of notification response (GetMemberMessages and GetItem).
The number of arguments to the handling functions is hard-coded in listener.php. To handle notification responses of type GetItemTransactions, not that the incoming response will have this form :
[Thu Apr 03 17:09:36 2008] [error] [client 66.135.197.166] eBayPlatformNotificationListener: args array : Array(
[0] => 2008-04-03T21:09:36.616Z
[1] => Success
[2] => 265217270
[3] => 557
[4] => e557_core_Bundled_6324270_R1
[5] => FixedPriceTransaction
[6] => my_seller_store
[7] => stdClass Object (
[TotalNumberOfPages] => 1
[TotalNumberOfEntries] => 1 )
[8] => false
[9] => 100
[10] => 1
[11] => 1
[12] => stdClass Object (
[AutoPay] => false
[BuyerProtection] => ItemIneligible
[BuyItNowPrice] => 0.0
[Currency] => USD
...
[13] => stdClass Object (
[Transaction] => stdClass Object (
[AmountPaid] => 1.0
[AdjustmentAmount] => 0.0
...
So the call to a GetItemTransactions function will need to go up to array index [13] to reference everything.