Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
angular-paymill
Advanced tools
#angular-paymill
IMPORTANT: This is not an official project by Paymill!
npm install --save-dev angular-paymill
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']);
app.config(['PaymillProvider', function(PaymillProvider) {
PaymillProvider
.setPublicKey('517113797587d2ba3ee19bd646ffb7f1')
.setSignetUrl('http://lorempixel.com/400/200/sports/')
}]);
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
angular paymill directives
The npm package angular-paymill receives a total of 0 weekly downloads. As such, angular-paymill popularity was classified as not popular.
We found that angular-paymill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.