class CheckoutForm(forms.Form): address_option = forms.ChoiceField(widget=forms.RadioSelect, choices=ADDRESS_CHOICES) shipping_address = forms.CharField( required=False, widget=forms.TextInput(attrs={'placeholder': ' '})) address_details = forms.CharField( required=False, widget=forms.TextInput(attrs={ 'placeholder': ' ', 'class': 'form-control' })) # here must be city with options(Giza ,Cairo ) save_new_address = forms.BooleanField(required=False) city = forms.CharField(label='select city', widget=forms.Select(choices=CITIES)) zip = forms.CharField(required=False) payment_option = forms.ChoiceField(widget=forms.RadioSelect, choices=PAYMENT_CHOICES) save_card_info = forms.BooleanField(required=False) card_owner = forms.CharField(max_length=100, required=False) card_number = CardNumberField(label='Card Number', required=False) card_expiry = CardExpiryField(label='Expiration Date', required=False) cvv = SecurityCodeField(label='CVV/CVC', required=False) assert types.get_type('0000000000000000') == types.CC_TYPE_GENERIC
class SetPlanForm(forms.Form): zip = forms.CharField(required=False) card_number = CardNumberField() expiry = CardExpiryField() cvc = SecurityCodeField() plan = forms.ChoiceField(choices=tuple( (o, o) for o in settings.PLAN_DEFINITIONS.keys()), required=False)
class PaymentForm(forms.Form): cc_number = CardNumberField(label='Card Number', widget=forms.TextInput(attrs={'class': 'form-control validate', 'id': 'orangeForm-pass',})) cc_expiry = CardExpiryField(label='Expiration Date', widget=forms.TextInput(attrs={'class': 'form-control validate', 'id': 'orangeForm-pass',})) cc_code = SecurityCodeField(label='CVV/CVC', widget=forms.TextInput(attrs={'class': 'form-control validate', 'id': 'orangeForm-pass',})) def save(self): self.cc_numberClean = self.cleaned_data['cc_number'] self.cc_expiryClean = self.cleaned_data['cc_expiry'] self.cc_codeClean = self.cleaned_data['cc_code']
class AddCreditCard(forms.ModelForm): cc_name = forms.CharField(label='Name on Card') cc_number = CardNumberField(label='Card Number') cc_expiry = CardExpiryField(label='Expiration Date') cc_code = SecurityCodeField(label='CVV/CVC') class Meta: model = CreditCard fields = ['cc_name', 'cc_number', 'cc_expiry', 'cc_code']
class CreditCardForm(forms.Form): cc_number = CardNumberField(label='Credit card number') cc_expiry = CardExpiryField(label='Expiration') cc_code = SecurityCodeField(label='CVV') def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['cc_number'].widget.attrs['class'] = "form-control" self.fields['cc_expiry'].widget.attrs['class'] = "form-control" self.fields['cc_code'].widget.attrs['class'] = "form-control"
class PaymentForm(forms.Form): cc_number = CardNumberField(label='Card Number') cc_expiry = CardExpiryField(label='Expiration Date') cc_code = SecurityCodeField(label='CVV/CVC') def __init__(self, *args, **kwargs): super(PaymentForm, self).__init__(*args, **kwargs) for visible in self.visible_fields(): visible.field.widget.attrs['class'] = 'form-control'
class PaymentForm(ModelForm): """ The payment information form """ first_name = forms.CharField(max_length=30, required=True, label='First Name') last_name = forms.CharField(max_length=30, required=True, label='Last Name') card_number = CardNumberField(required=True, label='Card Number') expiration_date = CardExpiryField(required=True, label='Expiration Date') cvv = SecurityCodeField(required=True, label='CVV/CVC') class Meta: model = PaymentInformation fields = ('first_name', 'last_name' , 'card_number', 'expiration_date', 'cvv')
class RegistroTarjeta(forms.Form): number = CardNumberField(label='Número de tarjeta', error_messages={ 'invalid': 'La tarjeta debe tener entre 12 y 16 numeros' }) date_expiration = CardExpiryField(error_messages={ 'date_passed': 'Fecha Invalida', }) cod = SecurityCodeField(error_messages={'invalid': 'Código inválido'}, ) card_name = forms.CharField(max_length=50) bank = forms.CharField(max_length=50)
class WizardForm(forms.Form): home_airport = JSONField() email = forms.EmailField() password = forms.CharField(widget=forms.PasswordInput) first_name = forms.CharField() last_name = forms.CharField() promo_code = forms.CharField(required=False) zip = forms.CharField(required=False) card_number = CardNumberField(required=False) expiry = CardExpiryField(required=False) cvc = SecurityCodeField(required=False) plan = forms.ChoiceField(choices=tuple( (o, o) for o in settings.PLAN_DEFINITIONS.keys()))
class PaymentForm(forms.Form): name_on_the_card = forms.CharField( max_length=255, label="Name", widget=forms.TextInput(attrs={'placeholder': 'Name'})) cc_number = CardNumberField( label='Card Number', widget=forms.TextInput(attrs={'placeholder': 'Credit card number'})) cc_expiry = CardExpiryField( label='Expiration Date', widget=forms.TextInput(attrs={'placeholder': 'Expiry date'})) cc_code = SecurityCodeField( label='CVV/CVC', widget=forms.TextInput(attrs={'placeholder': 'CVV/CVC'}))
class PizzeriaRequestForm(forms.ModelForm): cc_expiry = CardExpiryField(label='Fecha de expiración') cc_code = SecurityCodeField(label='Código seguridad') def __init__(self, *args, **kwargs): super(PizzeriaRequestForm, self).__init__(*args, **kwargs) self.fields['comment'].widget.attrs.update({'rows': 3, 'cols': 5}) class Meta: model = PizzeriaRequest fields = [ 'representative_full_name', 'phone', 'email', 'comment', "company_name", "address", "cc_number" ]
class PaymentForm(forms.Form): name_on_card = forms.CharField(required=True, label="Name on Card", max_length=100) number = CardNumberField(required=True, label="Card Number") expiration = CardExpiryField(required=True, label="Expiration Date") cvc = forms.CharField(required=True, label="CVV/CVC", widget=forms.TextInput(attrs={ 'size': '3', 'maxlength': '3', 'placeholder': '' })) country = forms.CharField(required=False, max_length=255, label="City", widget=forms.TextInput()) zip = forms.CharField(required=False, max_length=255, label=mark_safe(" Zip"), widget=forms.TextInput())
class PaymentForm(Form): cardholder_name = CharField(max_length=255, label="Cardholder's Name") card_number = CardNumberField(label='Card Number') expiry_date = CardExpiryField(label='Expiration Date') cvc = SecurityCodeField(label='CVV/CVC')
class PaymentInfoForm(forms.Form): cardholder = forms.CharField(max_length=255, label="Cardholder full name:") card_number = CardNumberField(label="Credit Card Number:") exp_date = CardExpiryField(label="Card Expiry Date:") cvc_code = SecurityCodeField(label="CVC/CVV Code:")
class PaymentForm(forms.Form): cc_number = CardNumberField(label='Card Number') cc_expiry = CardExpiryField(label='Expiration Date') cc_code = SecurityCodeField(label='CVV/CVC') address = forms.CharField(max_length=100, required=True)
class CardExpiry(forms.Form): expiry = CardExpiryField()
class BillingForm(forms.Form): cc_name = forms.CharField(max_length=150) cc_number = CardNumberField(label='Card Number', widget=forms.TextInput(attrs={'size': '40'})) cc_expiry = CardExpiryField(label='Expiration Date') cc_code = SecurityCodeField(label='CVV/CVC')
class CreditCardForm(forms.Form): name = forms.CharField(max_length=50) card_number = forms.CharField() expire_date = CardExpiryField() ccr = SecurityCodeField()
class PaymentForm(Form): cc_number = CardNumberField(label="Card Number") cc_expiry = CardExpiryField(label="Expiration Date") cc_code = SecurityCodeField(label="CVV/CVC")
class PaymentForm(forms.Form): full_name = forms.CharField(label="Nombre") identification = forms.IntegerField(label="Idenficación") cc_number = CardNumberField(label='Card Number') cc_expiry = CardExpiryField(label='Expiration Date') cc_code = SecurityCodeField(label='CVV/CVC')
class PaymentForm(forms.Form): cc_number = CardNumberField(label='Card Number') cc_expiry = CardExpiryField(label='Expiration Date') cc_code = SecurityCodeField(label='CVV/CVC')