
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
stripe-pay works by hooking into stripe-checkout.js and creates a custom web component that you can add to your site to allow accepting payments. It requires you to include https://checkout.stripe.com/checkout.js to utilize their sdk and all payments are processed through their popup. As with anything, please read the source code. I've attempted to document it using jsdoc style documentation to make it super simple to read. If you find any issues, feel free to open a Pull Request or an issue.
https://checkout.stripe.com/checkout.js before including the stripe-pay componentdist/stripe.js<stripe-pay
key="pk_test_blahblahblah"
name="Product Name"
description="Product Description"
currency="usd"
locale="auto"
amount="20000"
image="https://stripe.com/img/documentation/checkout/marketplace.png"
zipCode="true">
Click Here to Buy!
</stripe-pay>
stripe-pay will fire an onToken event with information related to the purchase. When the popup closes, stripe-pay will fire an onClose event.Styling is done with CSS Variables. The following variables are available to control the text of the link:
--stripe-pay-font-family
--stripe-pay-font-size
--stripe-pay-font-weight
--stripe-pay-color
--stripe-pay-decoration
You are also able to pass in images which you can control with regular CSS.
npm i or yarnnpm start or yarn startNote: By default, stencil components only run in Chrome when development happens. This can be changed to add the --prod attribute to the package.json script but it slows don't recompiling.
FAQs
A component for stripe payments
The npm package stripe-pay receives a total of 2 weekly downloads. As such, stripe-pay popularity was classified as not popular.
We found that stripe-pay 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
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.