Socket
Socket
Sign inDemoInstall

angular.jquery.payment

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular.jquery.payment

Angularjs directives to jquery.payment


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
92.5 kB
Created
Weekly downloads
 

Readme

Source

Angular Jquery Payment

Angularjs directives to jquery.payment


Installation

$ bower install angular.jquery.payment --save

Usage

Include the plugin in your application:

<script src="../bower_components/jquery/dist/jquery.min.js"></script>`
<script src="../bower_components/jquery.payment/lib/jquery.payment.min.js"></script>`
<script src="../dist/angular.jquery.payment.js"></script>`

And then include the AngularJs module:

app = angular.module('app', ['angular.jquery.payment'])

Controller example

app.controller('cardForm', ['$scope', function($scope) {
    $scope.expiry = {exp: ''};
    $scope.card_type = '';
    $scope.card = {number: '', exp_month: '', exp_year: '', cvc: ''};
  }
]);

The directives build the credit card inputs with validation and formatting.

<input-card-number ng-model='card.number' card-type='card_type' placeholder='Number'>
<input-card-expiry ng-model='expiry.exp' month='card.exp_month' year='card.exp_year' placeholder='Expiry'>
<input-card-cvc ng-model='card.cvc' card-type='card_type' placeholder='CVC'>

Author

Daniel Fernando Lourusso

FAQs

Last updated on 21 Nov 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc