public void Create_RespectsVerifyCardAndVerificationMerchantAccountIdOutsideTheNonce()
{
var nonce = TestHelper.GetNonceForNewPaymentMethod(
gateway,
new Params
{
{ "number", "4000111111111115" },
{ "expiration_month", "11" },
{ "expiration_year", "2099" }
},
isCreditCard : true);
var customer = gateway.Customer.Create().Target;
var result = gateway.PaymentMethod.Create(new PaymentMethodRequest
{
PaymentMethodNonce = nonce,
CustomerId = customer.Id,
Options = new PaymentMethodOptionsRequest
{
VerifyCard = true,
VerificationMerchantAccountId = MerchantAccountIDs.NON_DEFAULT_MERCHANT_ACCOUNT_ID
}
});
Assert.IsFalse(result.IsSuccess());
Assert.IsNotNull(result.CreditCardVerification);
Assert.AreEqual(VerificationStatus.PROCESSOR_DECLINED, result.CreditCardVerification.Status);
Assert.AreEqual("2000", result.CreditCardVerification.ProcessorResponseCode);
Assert.AreEqual("Do Not Honor", result.CreditCardVerification.ProcessorResponseText);
Assert.AreEqual(MerchantAccountIDs.NON_DEFAULT_MERCHANT_ACCOUNT_ID, result.CreditCardVerification.MerchantAccountId);
}