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

checkCustomerExists() protected method

protected checkCustomerExists ( $customer )
    protected function checkCustomerExists($customer)
    {
        if (!parent::checkCustomerExists($customer)) {
            return false;
        }
        $customer = $this->gateway()->findCustomer($customer->token)->send()->getData();
        return $customer instanceof Customer;
    }