App\Ninja\PaymentDrivers\BraintreePaymentDriver::removePaymentMethod PHP Method

removePaymentMethod() public method

public removePaymentMethod ( $paymentMethod )
    public function removePaymentMethod($paymentMethod)
    {
        parent::removePaymentMethod($paymentMethod);
        $response = $this->gateway()->deletePaymentMethod(['token' => $paymentMethod->source_reference])->send();
        if ($response->isSuccessful()) {
            return true;
        } else {
            throw new Exception($response->getMessage());
        }
    }