Php Silex Payum错误:不支持请求捕获{model:Identity}
我目前正在使用Silex(lastest stable)制作一个网站,在那里我需要实现一个支付系统。因此,我尝试安装Payum(最新稳定版本),在调用prepare页面之前,一切正常,该页面将我重定向到Payum capture的页面(/payment/capture/Php Silex Payum错误:不支持请求捕获{model:Identity},php,paypal,silex,payum,Php,Paypal,Silex,Payum,我目前正在使用Silex(lastest stable)制作一个网站,在那里我需要实现一个支付系统。因此,我尝试安装Payum(最新稳定版本),在调用prepare页面之前,一切正常,该页面将我重定向到Payum capture的页面(/payment/capture/请求的散列),我收到以下错误: Request Capture{model: Identity} is not supported. 对于安装,我遵循了官方指南: 我也尝试过Payum的所有其他版本,但都没有成功 以下是错误的跟
请求的散列),我收到以下错误:
Request Capture{model: Identity} is not supported.
对于安装,我遵循了官方指南:
我也尝试过Payum的所有其他版本,但都没有成功
以下是错误的跟踪:
in RequestNotSupportedException.php line 29
at RequestNotSupportedException::create(object(Capture)) in Gateway.php line 99
at Gateway->execute(object(Capture)) in ExecuteSameRequestWithModelDetailsAction.php line 32
at ExecuteSameRequestWithModelDetailsAction->execute(object(Capture)) in Gateway.php line 107
at Gateway->execute(object(Capture)) in CaptureController.php line 20
at CaptureController->doAction(object(Request))
at call_user_func_array(array(object(CaptureController), 'doAction'), array(object(Request))) in HttpKernel.php line 147
at HttpKernel->handleRaw(object(Request), '1') in HttpKernel.php line 68
at HttpKernel->handle(object(Request), '1', true) in Application.php line 586
at Application->handle(object(Request)) in Application.php line 563
at Application->run() in app_dev.php line 12
如果有人能帮助我,我会高兴的!:)
提前感谢好的,我找到了答案,感谢github和Payum Silex的创建者@makasim:)
只需添加以下内容:
<?php
$gateways['paypal_ec']->addExtension(new StorageExtension(
new FilesystemStorage(__DIR__.'/cache/payum', 'Payum\Core\Model\Payment')
));