在 Payum 如何查看 "correctly" 付款状态 "pending"?
In Payum How can I check "correctly" the status "pending" in the payment?
在我实际的 Symfony2 项目中,我使用带有 Payum 1.3.4 的 PayumBundle 通过 paypal_express_checkout 工厂进行支付。我发现了一个行为,也许可以,但我需要与另一个了解 Payum 的人确认。
简单说明一下:
1- 在 Paypal Sandbox 中创建了一个用户来测试付款,并激活了付款审核以强制所有付款保持 "pending" 状态。
2- 准备阶段顺利通过,重定向到 PayPal。
3- PayPal 付款也很好,再次重定向到我的网站到完成阶段。
4- 在完成阶段发生以下情况:
public function doneAction(Request $request)
{
$token = $this->get('payum')->getHttpRequestVerifier()->verify($request);
$gateway = $this->get('payum')->getGateway($token->getGatewayName());
$gateway->execute($status = new GetHumanStatus($token));
/** @var Payment $payment */
$payment = $status->getFirstModel();
....
}
此时$status->getValue()
等于"captured"。
但是在 $payment->getDetails()
中我可以看到这个(为了清楚起见被截断了):
details(
"INVNUM" => "57dc5ce455d5a",
...
"ACK" => "Success",
...
"CHECKOUTSTATUS" => "PaymentActionCompleted"
...
"PAYMENTINFO_0_PAYMENTSTATUS" => "Pending",
"PAYMENTINFO_0_PENDINGREASON" => "paymentreview",
...
)
Payum 说状态是 Captured,但是 PayPal(没问题)说付款人是 "Pending"。
那么,为什么 Payum 状态是 "captured" 而不是 "pending"?这样对吗?
如何查看"correctly"付款状态"pending"?
我检查了 Payum Bundle Sandbox 中的示例,但没有关于待定状态的任何信息。
提前致谢。
检查 GitHub 中的问题线程:https://github.com/Payum/Payum/issues/585
此时是打开的,但是我描述了一个快捷方式。
在我实际的 Symfony2 项目中,我使用带有 Payum 1.3.4 的 PayumBundle 通过 paypal_express_checkout 工厂进行支付。我发现了一个行为,也许可以,但我需要与另一个了解 Payum 的人确认。
简单说明一下:
1- 在 Paypal Sandbox 中创建了一个用户来测试付款,并激活了付款审核以强制所有付款保持 "pending" 状态。
2- 准备阶段顺利通过,重定向到 PayPal。
3- PayPal 付款也很好,再次重定向到我的网站到完成阶段。
4- 在完成阶段发生以下情况:
public function doneAction(Request $request)
{
$token = $this->get('payum')->getHttpRequestVerifier()->verify($request);
$gateway = $this->get('payum')->getGateway($token->getGatewayName());
$gateway->execute($status = new GetHumanStatus($token));
/** @var Payment $payment */
$payment = $status->getFirstModel();
....
}
此时$status->getValue()
等于"captured"。
但是在 $payment->getDetails()
中我可以看到这个(为了清楚起见被截断了):
details(
"INVNUM" => "57dc5ce455d5a",
...
"ACK" => "Success",
...
"CHECKOUTSTATUS" => "PaymentActionCompleted"
...
"PAYMENTINFO_0_PAYMENTSTATUS" => "Pending",
"PAYMENTINFO_0_PENDINGREASON" => "paymentreview",
...
)
Payum 说状态是 Captured,但是 PayPal(没问题)说付款人是 "Pending"。
那么,为什么 Payum 状态是 "captured" 而不是 "pending"?这样对吗?
如何查看"correctly"付款状态"pending"?
我检查了 Payum Bundle Sandbox 中的示例,但没有关于待定状态的任何信息。
提前致谢。
检查 GitHub 中的问题线程:https://github.com/Payum/Payum/issues/585
此时是打开的,但是我描述了一个快捷方式。