fetchPurchase() публичный Метод

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
Результат Omnipay\PayPal\Message\RestFetchPurchaseRequest
Пример #1
0
 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);
 }