public function paymentMethod()
    {
        $customer = $this->asBraintreeCustomer();

        foreach ($customer->paymentMethods as $paymentMethod) {
            if ($paymentMethod->isDefault()) {
                return $paymentMethod;
            }
        }
    }
public function paymentMethod()
    {
        $customer = $this->asBraintreeCustomer();

        foreach ($customer->paymentMethods as $paymentMethod) {
            if ($paymentMethod->isDefault()) {
                return $paymentMethod;
            }
        }
    }
public function paymentMethod ( ) { $ customer = $ this -> asBraintreeCustomer ( ) ; foreach ( $ customer -> paymentMethods as $ paymentMethod ) { if ( $ paymentMethod -> isDefault ( ) ) { return $ paymentMethod ; } } }
Get the default payment method for the customer.

@return array
@throws \Braintree\Exception\NotFound
Get the default payment method for the customer .