
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Dead simple user payment system so simple a caveman cow could do it.
Turn your app into a ca💲h c🐄w.
Rich Cow is a small app that sits in the middle between your application and the payment processors it uses. Rich Cow offloads as much of the logic and user-interaction as possible to the forms maintained by and hosted on the payment processors themselves. Your app in turn offloads to Rich Cow everything but the bare minimum needed for your app to accept payments. The end result is a system that's straightforward for developers and users, secure, easy to mantain, and as customizable as possible without introducing too much complexity.
Will it continue receiving updates? Yes. It was built for and is mantained by Ptorx and other projects in the Xyfir Network.
What's it look like? However you want it to, but for the default theme, see Screenshots.
As simple as Rich Cow is, you'll still need to download, configure, build, and integrate it into your app. We've made it just about as easy as it could possibly be.
Note #1: If your system does not yet have Node installed, start with nvm (or nvm for Windows).
Note #2: You may alternatively download Rich Cow through npm (see here), however this is not currently the recommended installation method. In the future we'll likely have a CLI tool available through npm to make configuring, running, and managing Rich Cow instances easier.
git clone https://github.com/Xyfir/rich-cow.git
cd rich-cow/server
npm install
touch .env
Now open up rich-cow/server/.env
in your editor and fill out the values. See the RichCow.Env.Common
and RichCow.Env.Server
interfaces in types/rich-cow.d.ts for expected environment variables. Format is KEY=VALUE
(PORT=1234
, NAME="Rich Cow"
, etc).
npm run build
npm run start # or launch ./dist/app.js however you like
At this point the setup is based on your environment and what your needs are. Probably you'll run the server with pm2 and put Node behind Nginx or Apache.
cd ../web
npm install
touch .env
Now open up rich-cow/web/.env
in your editor and fill out the values. See the RichCow.Env.Common
and RichCow.Env.Web
interfaces in types/rich-cow.d.ts for expected environment variables.
npm run build
This part is largely up to you, so it's important to understand the flow of data between your app and Rich Cow:
To be a bit more specific:
Check the RichCow.Payment interface. Your app should only ever send a JWT containing id
, amount
, and methods
; everything else will be added by Rich Cow and sent back to your app with the user later. To check if a payment has been paid, all you have to do is check that paid
is a number, and not undefined
. Other values sent back to your app like method
or squareTransactionId
can be ignored unless you have some other use for them.
This is about all there is to see. Once the user chooses a payment method they will be redirected to the payment processor's hosted form. Most of Rich Cow's utility is in the work it does behind the scenes communicating with each payment processor API.
FAQs
Dead simple user payment system so easy a cow could do it.
We found that rich-cow 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.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.