To perform a direct transaction without 3D Secure verification, set payment3D.confirm = false in your SaleRequest. This will attempt to process the payment immediately and return the final result directly from the VPOSClient.Sale method.
VirtualPOSAuth _qnbPayTest = new VirtualPOSAuth
{
bankCode = CP.VPOS.Services.BankService.QNBpay,
merchantID = "20158",
merchantUser = "07fb70f9d8de575f32baa6518e38c5d6",
merchantPassword = "61d97b2cac247069495be4b16f8604db",
merchantStorekey = "$2y$10$N9IJkgazXMUwCzpn7NJrZePy3v.dIFOQUyW4yGfT3eWry6m.KxanK",
testPlatform = true
};
CustomerInfo customerInfo = new CustomerInfo
{
taxNumber = "1111111111",
emailAddress = "test@test.com",
name = "cem",
surname = "pehlivan",
phoneNumber = "1111111111",
addressDesc = "adres",
cityName = "istanbul",
country = CP.VPOS.Enums.Country.TUR,
postCode = "34000",
taxOffice = "maltepe",
townName = "maltepe"
};
SaleRequest saleRequest = new SaleRequest
{
invoiceInfo = customerInfo,
shippingInfo = customerInfo,
saleInfo = new SaleInfo
{
cardNameSurname = "test kart",
cardNumber = "4022780520669303",
cardExpiryDateMonth = 1,
cardExpiryDateYear = 2050,
cardCVV = "988",
amount = (decimal)10,
currency = CP.VPOS.Enums.Currency.TRY,
installment = 1,
},
payment3D = new Payment3D
{
confirm = false
},
customerIPAddress = "1.1.1.1",
orderNumber = Convert.ToInt32((DateTime.Now - new DateTime(1970, 1, 1)).TotalSeconds).ToString("X")
};
var resp = VPOSClient.Sale(saleRequest, _qnbPayTest);