📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

clockpay-react

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clockpay-react

[![npm version](https://badge.fury.io/js/clockpay.svg)](https://badge.fury.io/js/clockpay) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

1.1.0
latest
Source
npm
Version published
Weekly downloads
6
-14.29%
Maintainers
0
Weekly downloads
 
Created
Source

ClockPay Reactjs SDK

npm version License: MIT

A lightweight, type-safe React.js SDK for integrating ClockPay payment services, including payment links and currency support, to streamline secure client-side payments.

Installation

Using npm:

npm install clockpay-react

Using yarn:

yarn add clockpay-react

Using pnpm:

pnpm add clockpay-react

Usage

Importing the SDK using ES modules

import { PaymentButton } from 'clockpay-react';

Quick Start

import { PaymentButton } from 'clockpay-react';

// Initialize the SDK
<PaymentButton
  publicKey='clockpay_public_key_....'
  clientSecret='secret'
/>

API Reference

Parameters
ParameterTypeRequiredDescription
publicKeystringYesGotten from the business account developer dashboard
clientSecretstringYesGotten from the server-side response
backgroundColorstringNoAllows you to style the background-color eg. backgroundColor="#ffffff"
borderColorstringNoAllows you to style the border-color eg. borderColor="#ffffff"
textColorstringNoAllows you to style the text-color eg. textColor="#000000"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

reactjs

FAQs

Package last updated on 09 Jan 2025

Did you know?

Socket

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.

Install

Related posts