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

public purchase ( array $parameters = [] ) : AbstractRequest
$parameters array
Результат Omnipay\Common\Message\AbstractRequest
 public function testPurchase()
 {
     /**
      * @var LegacyExpressPurchaseResponse $response
      */
     $response = $this->gateway->purchase($this->options)->send();
     $this->assertTrue($response->isSuccessful());
     $this->assertTrue($response->isRedirect());
     $this->assertNotEmpty($response->getRedirectUrl());
 }