Omnipay\Alipay\LegacyWapGateway::purchase PHP Method

purchase() public method

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

Usage Example

コード例 #1
0
 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