【发布时间】:2014-01-17 21:19:54
【问题描述】:
我正在使用 Omnipay 2.1 和 CodeIgniter 2.1.4 接收 Paypal 付款。
我使用此行完成购买并检查付款是否已发送:
$bool = $gateway->completePurchase(array('amount' => $total, 'currency' => 'EUR'))
->send()
->isSuccessful();
但我注意到,如果付款处于待处理状态,isSuccessful() 方法也会返回 true。
我如何使用omnipay 来检查它是否是待付款?
【问题讨论】:
-
print_r($response->getData())返回什么? -
pastebin.com/BLK6Hqf6 所以我想我必须检查
PAYMENTINFO_0_PAYMENTSTATUS是否等于Completed。
标签: php codeigniter paypal omnipay