Omnipay\PayPal\RestGateway::cancelSubscription PHP Méthode

cancelSubscription() public méthode

Use this call to cancel an agreement.
public cancelSubscription ( array $parameters = [] ) : Omnipay\PayPal\Message\RestCancelSubscriptionRequest
$parameters array
Résultat Omnipay\PayPal\Message\RestCancelSubscriptionRequest
    public function cancelSubscription(array $parameters = array())
    {
        return $this->createRequest('\\Omnipay\\PayPal\\Message\\RestCancelSubscriptionRequest', $parameters);
    }

Usage Example

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