1.1.0 • Published 6 months ago

clockpay-react v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago