paypal/rest-api-sdk-php — pull request #106 by ojtibi (2014-08-26 08:39:58+00:00)
Title: Order class

Whenever a payment for an "order" intent is executed using Payment::execute(), class name resolutions made by PPReflectionUtil become erratic.

The root cause is because there is no Order class written in the PHP SDK. According to the JSON dump from the payment execution result, an Order object is included under the RelatedResources object.

I've written a new Order object to address this issue, together with the necessary tests. RelatedResources and RelatedResourcesTest are also modified to accommodate the new Order property.