Hi,
I guess this should be obvious, but documentation is not in abundance so please excuse the potentially nieve question.
I am building a custome gateway for PayPoint. I want to get hold of the credit card type, Visa, Mastercard, Amex, etc.
Is this in the Payment.PaymentMethodName property?
Thanks in advance.
Rob.
Custoim Payent Gateway, getting Credit card details
-
- Ensign (ENS)
- Posts: 8
- Joined: Fri Sep 25, 2009 3:32 am
Re: Custoim Payent Gateway, getting Credit card details
Yes,
It is like
Here "CardType" is dropdownlist which shows list of Cards available to Users.
You can check existing page (Checkout/PaymentForm/Creditcard....).
It is like
Code: Select all
PaymentMethodCollection methods = StoreDataHelper.GetPaymentMethods(Token.Instance.UserId);
List<string> creditCards = new List<string>();
List<string> intlDebitCards = new List<string>();
foreach (PaymentMethod method in methods)
{
if (method.IsCreditOrDebitCard())
{
CardType.Items.Add(new ListItem(method.Name, method.PaymentMethodId.ToString()));
if (method.IsIntlDebitCard()) intlDebitCards.Add(method.Name);
else creditCards.Add(method.Name);
}
}
You can check existing page (Checkout/PaymentForm/Creditcard....).