I'm still not sure where things are going wrong, but it appears that the SDK uses doc comments to determine which type of object is created, and on the requestEnvelope field in the PayResponse class, it's not successfully getting any doc comment to parse, so it falls back to ‘string'.
If I hardcode if ($propertyName == "responseEnvelope") return 'ResponseEnvelope'; into the PPUtils::propertyType method, then I can at least submit an order and have it go through to PayPal as expected, but this is far from a solution. I'll update this if I can figure out why the ReflectionProperty is failing to get the comment.
Thank you for the info, but everything is configured correctly.
I found the source of the issue, however. It looks like eAccelerator is enabled on WP Engine, where we're hosting our site, and that strips doc comments from the source when caching. I'm checking with their support now to see if I can have it disabled for this site.
Viewing 4 posts - 1 through 4 (of 4 total)
The topic ‘PayPal Adaptive Payments – Class 'string' not found’ is closed to new replies.