-
Node.js:
v20.14.0
Ensure you have the specified version of Node.js installed to avoid compatibility issues.
To install the LeapPay SDK, run the following command:
npm install leappay_sdk
Run these commands using npm run <command_name>
:
-
build
: Creates a production build of the library.
-
dev
: Starts the development mode for the library. -
serve
: Serves the created build on a specified port. -
start
: Concurrently watches for changes, builds the library, and serves the build.
-
lint:fix
: Fixes all ESLint errors. -
prettier
: Fixes all Prettier formatting issues.
Here is a basic example of how to use the ConnectLeapPayForm
component from the LeapPay SDK in your React application:
import React from 'react';
import { ConnectLeapPayForm } from 'leappay_sdk';
function App() {
return (
<div>
<h1>Welcome to LeapPay</h1>
<ConnectLeapPayForm />
</div>
);
}
export default App;
This project is licensed under the MIT License.