New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular-paymill

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-paymill

angular paymill directives

  • 0.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

#angular-paymill

IMPORTANT: This is not an official project by Paymill!

Install

npm install --save-dev angular-paymill

Usage

Embed the module in your html.

<script src="/node_modules/angular-paymill/dest/Paymill.js"></script>

Set the module as dependency to your angular application.


var app = angular.module('app', ['pd.paymill']);

PaymillProvider

app.config(['PaymillProvider', function(PaymillProvider) {

	PaymillProvider
		.setPublicKey('517113797587d2ba3ee19bd646ffb7f1')
		.setSignetUrl('http://lorempixel.com/400/200/sports/')

}]);

paymill-subscribe-button

The controller part ...

app.run(['$rootScope', function($rootScope) {

	$rootScope.config = {
		buttonLabel: 'Abo jetzt!',
		modalTitle: 'Abo',
		submitButtonLabel: '2.50 EUR/Monat',
		product: {
			description: 'Ein Jahr On-Demand',
			amount: 250,
			currency: 'EUR',
		},
		lang: 'de-DE',
		onToken: function(token) {
			console.log(token);
		}
	};
	
	// Alternatively to config.onToken you can set an on-token attribute
	$rootScope.handleToken = function(token) {
		console.log(token);
	};


}]);

And the view part ...

<paymill-subscribe-button on-token="handleToken(token)" config="config"></paymill-subscribe-button>

#Author

Christian Blaschke mail@platdesign.de

FAQs

Package last updated on 25 Sep 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc