Omnipay\PayPal\RestGateway::completeSubscription PHP Method

completeSubscription() public method

Use this call to execute an agreement after the buyer approves it.
public completeSubscription ( array $parameters = [] ) : Omnipay\PayPal\Message\RestCompleteSubscriptionRequest
$parameters array
return Omnipay\PayPal\Message\RestCompleteSubscriptionRequest
    public function completeSubscription(array $parameters = array())
    {
        return $this->createRequest('\\Omnipay\\PayPal\\Message\\RestCompleteSubscriptionRequest', $parameters);
    }

Usage Example

コード例 #1
0
ファイル: RestGatewayTest.php プロジェクト: omnipay/paypal
 public function testCompleteSubscription()
 {
     $this->setMockHttpResponse('RestExecuteSubscriptionSuccess.txt');
     $response = $this->gateway->completeSubscription($this->subscription_options)->send();
     $this->assertTrue($response->isSuccessful());
     $this->assertNull($response->getMessage());
     $this->assertEquals('I-0LN988D3JACS', $response->getTransactionReference());
 }