Omnipay\Alipay\LegacyWapGateway::purchase PHP 메소드

purchase() 공개 메소드

public purchase ( array $parameters = [] ) : LegacyWapPurchaseRequest
$parameters array
리턴 Omnipay\Alipay\Requests\LegacyWapPurchaseRequest
    public function purchase(array $parameters = [])
    {
        return $this->createRequest(LegacyWapPurchaseRequest::class, $parameters);
    }

Usage Example

 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());
 }
LegacyWapGateway