react-nomba-checkout-sdk 1.0.0 β 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# React Nomba Checkout SDK
|
|
2
|
+
|
|
3
|
+
The `react-nomba-checkout-sdk` is a lightweight JavaScript library designed to simplify payment processing and checkout experiences in your react web applications.
|
|
4
|
+
|
|
5
|
+
## π Getting Started
|
|
6
|
+
|
|
7
|
+
To install the SDK, use npm or yarn:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install react-nomba-checkout-sdk
|
|
11
|
+
# or
|
|
12
|
+
yarn add react-nomba-checkout-sdk
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
Hereβs how to integrate the SDK into your project:
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## π Usage
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
import { NombaCheckoutButton } from "react-nomba-checkout-sdk";
|
|
24
|
+
|
|
25
|
+
const CheckoutPage = ({orderId}) => {
|
|
26
|
+
return (
|
|
27
|
+
<div>
|
|
28
|
+
<NombaCheckoutButton orderId={orderId} onClose = {onClose}/>
|
|
29
|
+
</div>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default CheckoutPage;
|
|
34
|
+
|
|
35
|
+
```
|