public fetchPurchase ( array $parameters = [] ) : Omnipay\PayPal\Message\RestFetchPurchaseRequest | ||
$parameters | array | |
리턴 | Omnipay\PayPal\Message\RestFetchPurchaseRequest |
public function fetchPurchase(array $parameters = array())
{
return $this->createRequest('\\Omnipay\\PayPal\\Message\\RestFetchPurchaseRequest', $parameters);
}
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); }