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

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