public void Create_IgnoresPassedBillingAddressIdForPayPalAccount()
{
var nonce = TestHelper.GetNonceForPayPalAccount(
gateway,
new Params
{
{ "consent-code", "PAYPAL_CONSENT_CODE" }
});
var customer = gateway.Customer.Create().Target;
var result = gateway.PaymentMethod.Create(new PaymentMethodRequest
{
PaymentMethodNonce = nonce,
CustomerId = customer.Id,
BillingAddressId = "address_id"
});
Assert.IsTrue(result.IsSuccess());
Assert.That(result.Target, Is.InstanceOf(typeof(PayPalAccount)));
Assert.IsNotNull(result.Target.ImageUrl);
var token = result.Target.Token;
var foundPaypalAccount = gateway.PayPalAccount.Find(token);
Assert.IsNotNull(foundPaypalAccount);
}