
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
webpayments
Advanced tools
Experimental web payments polyfill
WARNING: The Web Payments spec is still under heavy development. This implementation (and its API) will change often and without notice.
navigator.requestPayment(['interledger'], {
amount: '100',
currencyCode: 'USD',
countryCode: 'US'
}, {
interledger: {
account: 'https://localhost:3001/accounts/mellie'
}
})
The fastest way to include the polyfill is with a script tag:
<script src="https://web-payments.net/polyfill.js"></script>
If you are using a tool like webpack or browserify, you can also just install this library from NPM:
npm install -S webpayments
The basic script tag method will be blocking. A non-blocking alternative is the following embed code:
<script>
(function(w,e,b,p,a,y) {
w[p] = w[p] || (function (cb) { this.push(cb); return this }).bind([]);
a = e.createElement(b); a.async = 1; a.src = '//web-payments.net/polyfill.js';
y = e.getElementsByTagName(b)[0]; y.parentNode.insertBefore(a,y);
})(window,document,'script','WebPaymentsOnLoad');
</script>
You can then register a callback to be called when the polyfill has been loaded:
<script>
WebPaymentsOnLoad(function () {
navigator.requestPayment(/* ... */)
})
</script>
TODO: Add API documentation
For now, please see the spec: http://discourse.wicg.io/t/rfc-proposal-for-new-web-payments-api/1100
FAQs
Polyfill for proposed Web Payments API
We found that webpayments 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
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.