cancelSubscription() public method

Use this call to cancel an agreement.
public cancelSubscription ( array $parameters = [] ) : Omnipay\PayPal\Message\RestCancelSubscriptionRequest
$parameters array
return Omnipay\PayPal\Message\RestCancelSubscriptionRequest
コード例 #1
0
ファイル: RestGatewayTest.php プロジェクト: omnipay/paypal
 public function testCancelSubscription()
 {
     $this->setMockHttpResponse('RestGenericSubscriptionSuccess.txt');
     $response = $this->gateway->cancelSubscription($this->subscription_options)->send();
     $this->assertTrue($response->isSuccessful());
     $this->assertNull($response->getMessage());
 }