我试着像这里的Paypal Express Checkout一样: https://github.com/Payum/Payum/blob/master/docs/symfony/custom-purchase-examples/paypal-express-checkout.md https://github.com/Payum/Payum/blob/master/docs/symfony/purchase-done-action.md
一切正常,期望captureDoneAction返回错误:
错误:调用未定义的方法 Payum \ Core \ Request \ GetHumanStatus :: isCaptured()in (..)/ PaymentBundle / Controller / DefaultController.php第65行
(..)只是我的路径,第65行是:
if($ status-> isCaptured()){
其他一切就像Payum文档中的示例一样。为什么isCaptured()会返回错误?
答案 0 :(得分:1)
感谢Coussinsky,回答这个问题非常容易。
如果您按照http://payum.org/doc/0.11/PayumBundle/simple_purchase_examples/paypal_express_checkout
(https://github.com/Payum/Payum/blob/master/docs/symfony/custom-purchase-examples/paypal-express-checkout.md)