public function testCreate_ignoresPassedBillingAddressIdForPaypalAccount() { $http = new HttpClientApi(Braintree\Configuration::$global); $nonce = $http->nonceForPaypalAccount(['paypalAccount' => ['consentCode' => 'PAYPAL_CONSENT_CODE']]); $customer = Braintree\Customer::createNoValidate(); $result = Braintree\PaymentMethod::create(['paymentMethodNonce' => $nonce, 'customerId' => $customer->id, 'billingAddressId' => 'address_id']); $this->assertTrue($result->success); $this->assertTrue(is_a($result->paymentMethod, 'Braintree\\PaypalAccount')); $token = $result->paymentMethod->token; $foundPaypalAccount = Braintree\PaypalAccount::find($token); $this->assertTrue(NULL != $foundPaypalAccount); }