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
 public function testCancelSubscription()
 {
     $this->setMockHttpResponse('RestGenericSubscriptionSuccess.txt');
     $response = $this->gateway->cancelSubscription($this->subscription_options)->send();
     $this->assertTrue($response->isSuccessful());
     $this->assertNull($response->getMessage());
 }