Braintree.Tests.Integration.PaymentMethodIntegrationTest.Create_AllowsCustomVerificationAmount C# (CSharp) Метод

Create_AllowsCustomVerificationAmount() приватный Метод

private Create_AllowsCustomVerificationAmount ( ) : void
Результат void
        public void Create_AllowsCustomVerificationAmount()
        {
            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,
                    VerificationAmount = "1.02"
                }
            });

            Assert.IsFalse(result.IsSuccess());
            Assert.IsNotNull(result.CreditCardVerification);
            Assert.AreEqual(VerificationStatus.PROCESSOR_DECLINED, result.CreditCardVerification.Status);
        }
PaymentMethodIntegrationTest