public void Create_CreatesCreditCardWithSecurityParams()
{
Customer customer = gateway.Customer.Create(new CustomerRequest()).Target;
var creditCardRequest = new CreditCardRequest
{
CustomerId = customer.Id,
DeviceSessionId = "abc123",
FraudMerchantId = "7",
CardholderName = "John Doe",
Number = "5105105105105100",
ExpirationDate = "05/12",
BillingAddress = new CreditCardAddressRequest
{
CountryName = "Greece",
CountryCodeAlpha2 = "GR",
CountryCodeAlpha3 = "GRC",
CountryCodeNumeric = "300"
}
};
Result<CreditCard> result = gateway.CreditCard.Create(creditCardRequest);
Assert.IsTrue(result.IsSuccess());
}