public void Create_DoesntReturnErrorIfCreditCardOptionsArePresentForPayPalNonce()
{
var customer = gateway.Customer.Create().Target;
var originalToken = string.Format("paypal-account-{0}", DateTime.Now.Ticks);
var nonce = TestHelper.GetNonceForPayPalAccount(
gateway,
new Params
{
{ "consent_code", "consent-code" },
{ "token", originalToken }
});
var result = gateway.PaymentMethod.Create(new PaymentMethodRequest
{
PaymentMethodNonce = nonce,
CustomerId = customer.Id,
Options = new PaymentMethodOptionsRequest
{
VerifyCard = true,
FailOnDuplicatePaymentMethod = true,
VerificationMerchantAccountId = "not_a_real_merchant_account_id"
}
});
Assert.IsTrue(result.IsSuccess());
}