
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@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.ReactNode
fetchRazorpayConfiguration: 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.