Use this call to get details about payments that have not completed,
such as payments that are created and approved, or if a payment has failed.
public fetchPurchase ( array $parameters = [] ) : Omnipay\PayPal\Message\RestFetchPurchaseRequest | ||
$parameters | array | |
return | Omnipay\PayPal\Message\RestFetchPurchaseRequest |
public function testFetchPurchase() { $request = $this->gateway->fetchPurchase(array('transactionReference' => 'abc123')); $this->assertInstanceOf('\\Omnipay\\PayPal\\Message\\RestFetchPurchaseRequest', $request); $this->assertSame('abc123', $request->getTransactionReference()); $data = $request->getData(); $this->assertEmpty($data); }