
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
paytm-blink-checkout-react
Advanced tools
$ npm install --save paytm-blink-checkout-react
16.3.0 and above
The paytm-blink-checkout-react provides three components to incorporate Paytm Blink Checkout JS library in a project.
The component can be imported as:
import { CheckoutProvider, Checkout, injectCheckout} from 'paytm-blink-checkout-react'
The component are as follows :
The component is responsible for setting up Paytm Blink Checkout JS in the project. It sets the Paytm Blink Checkout JS instance and make it available to all its children component via React Context Provider. It requires config property which is mandatory is order to initialize Paytm Blink Checkout JS library. Additionally following props(optional) can be passed:
The config should be of same format as the Paytm Blink Checkout JS library, which could be checked from this link.
<CheckoutProvider config={config} openInPopup="false" env='PROD'>
</CheckoutProvider>
The component is responsible for invoking and displaying the payment page. It should be always nested inside CheckoutProvider component.
<CheckoutProvider config={config}>
<Checkout />
</CheckoutProvider>
It could be nested at any nth level of CheckoutProvider.
<CheckoutProvider config={config}>
<Child1>
<Child2>
<Checkout />
</Child2>
</Child1>
</CheckoutProvider>
This higher order component injects Paytm Blink Checkout JS instance to the wrapped component and make it available in the wrapped component props as checkoutJsInstance . The instance allows to directly interact with Paytm Blink Checkout JS library . The injected component should be always nested inside CheckoutProvider component.
Component that makes use of checkoutJsInstance prop.
function Test(props) {
const checkoutJsInstance = props.checkoutJsInstance;
return <div>{checkoutJsInstance && <span>checkoutJsInstance.TOKEN</span>}</div>;
}
Wrap component in a higher order component which provides checkoutJsInstance prop.
const InjectedComponent = injectCheckout(Test);
Render the wrapped component
<CheckoutProvider config={config}>
<InjectedComponent />
</CheckoutProvider>
FAQs
React based implementation for Paytm Blink Checkout JS
We found that paytm-blink-checkout-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.