
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@automattic/calypso-razorpay
Advanced tools
A set of helper functions and components for using Razorpay on WordPress.com.
This is a library of components and functions for using Razorpay for credit card processing in Calypso.
You'll need to wrap this context provider around any component that wishes to use useRazorpay. It accepts the following props:
children: React.ReactNodefetchRazorpayConfiguration: GetRazorpayConfiguration A function to fetch the razorpay configuration from the WP.com HTTP API.A React hook that allows access to Razorpay.js. This returns an object with the following properties:
razorpayConfiguration: null | RazorpayConfiguration The object containing the data returned by the wpcom razorpay configuration endpoint. Consumers can use this to instantiate a Razorpay object.isRazorpayLoading: boolean A boolean that is true if the razorpay configuration is currently being loaded.razorpayLoadingError: undefined | null | Error An optional object that will be set if there is an error loading the razorpay configuration.The hook does not provide an instantiated Razorpay object because doing so properly requires an Order ID, the existence of which is negotiated during the order flow. That is, we first initiate a transaction, returning a razorpay order ID negotiated between the backend and Razorpay, and then on the frontend initialize the Razorpay object which handles opening the modal with that order ID.
FAQs
A set of helper functions and components for using Razorpay on WordPress.com.
We found that @automattic/calypso-razorpay demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 52 open source maintainers 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 Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.