Add Credit Card Form
The Credit Card Form (CreditCardForm
) allows you to enter the payment card details. It integrates masking and card number validation.
What’s Inside
The Credit Card Form includes the following UI components that ship as part of the DevExpress UI Templates:
Show Add Credit Card Form
The following example demonstrates how to show the Credit Card Form. Use the CreditCardForm.Card
and CreditCardForm.CardHolder
properties to obtain the card details entered by the user.
using DevExpress.UITemplates.Collection.Forms;
// ...
using(var frm = new CreditCardForm()) {
if(frm.ShowDialog() == DialogResult.OK) {
var card = frm.Card;
string cardHolder = frm.CardHolder;
// ...
}
}
See Also