1.1.0 • Published 10 months ago

clockpay-react v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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.

1.1.0

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago