2017 © Pedro Peláez
 

yii2-extension yii2-credit-card

Yii2 credit card widget with client validation

image

andrewblake1/yii2-credit-card

Yii2 credit card widget with client validation

  • Wednesday, June 29, 2016
  • by admin@newzealandfishing.com
  • Repository
  • 4 Watchers
  • 4 Stars
  • 3,979 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 3 Open issues
  • 7 Versions
  • 4 % Grown

The README.md

yii2-credit-card

Latest Stable Version License, (*1)

Yii2 Bootstrap 3 components, providing client validated and masked credit card number, expiry and cvc fields with credit card icon changing to match credit card type when detectable., (*2)

Uses client validation courtesy of Stripe (https://github.com/stripe/jquery.payment) and works with validation in ActiveForm., (*3)

For PCI compliance, there is the ability to prevent submit of these fields via the submit property by excluding the name attribute from the rendered input element., (*4)

Installation

The preferred way to install this extension is through composer. Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the minimum-stability settings for your application's composer.json., (*5)

To install, (*6)

$ php composer.phar require andrewblake1/yii2-credit-card "@dev"

or add, (*7)

"andrewblake1/yii2-credit-card": "@dev"

to the require section of your composer.json file., (*8)

Latest Release

NOTE: The latest version of the module is v1.1.0. Refer the CHANGE LOG for details., (*9)

Usage in view

Note that the input names here have been chosen to fit work with the tuyakhov\braintree extension, (*10)




    <div class="container">
        <div id="card" class="row">
            <div class="col-xs-7">
                <?= $form->field($bookingForm, 'creditCard_number')->widget(CreditCardNumber::className(), ['submit' => false,]) ?>
            </div>
            <div class="col-xs-3">
                <?= $form->field($bookingForm, 'creditCard_expirationDate')->widget(CreditCardExpiry::className(), ['submit' => false,]) ?>
            </div>
            <div class="col-xs-2">
                <?= $form->field($bookingForm, 'creditCard_cvv')->widget(CreditCardCVCode::className(), ['submit' => false,]) ?>
            </div>
        </div>
    </div>

License

yii2-credit-card is released under the MIT License. See the bundled LICENSE.md for details., (*11)

The Versions

29/06 2016

dev-master

9999999-dev https://github.com/andrewblake1/yii2-credit-card

Yii2 credit card widget with client validation

  Sources   Download

MIT

The Requires

 

by Andrew Blake
by Yaroslav Havryliv

yii2 widget card credit

29/06 2016

v1.1.1

1.1.1.0 https://github.com/andrewblake1/yii2-credit-card

Yii2 credit card widget with client validation

  Sources   Download

MIT

The Requires

 

by Andrew Blake
by Yaroslav Havryliv

yii2 widget card credit

16/06 2016

v1.1.0

1.1.0.0 https://github.com/andrewblake1/yii2-credit-card

Yii2 credit card widget with client validation

  Sources   Download

MIT

The Requires

 

by Andrew Blake
by Yaroslav Havryliv

yii2 widget card credit

22/03 2016

v1.0.3

1.0.3.0 https://github.com/andrewblake1/yii2-credit-card

Yii2 credit card widget with client validation

  Sources   Download

MIT

The Requires

 

by Andrew Blake

yii2 widget card credit

19/09 2015

v1.0.2

1.0.2.0 https://github.com/andrewblake1/yii2-credit-card

Yii2 credit card widget with client validation

  Sources   Download

MIT

The Requires

 

by Andrew Blake

yii2 widget card credit

29/08 2015

v1.0.1

1.0.1.0 https://github.com/andrewblake1/yii2-credit-card

Yii2 credit card widget with client validation

  Sources   Download

MIT

The Requires

 

by Andrew Blake

yii2 widget card credit

27/08 2015

v1.0.0

1.0.0.0 https://github.com/andrewblake1/yii2-credit-card

Yii2 credit card widget with client validation

  Sources   Download

MIT

The Requires

 

by Andrew Blake

yii2 widget card credit