paystack-sdk 1.0.19 → 1.0.20

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.
Files changed (2) hide show
  1. package/README.md +9 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -17,7 +17,7 @@ For NPM
17
17
  For Typescript
18
18
 
19
19
  ```
20
- import Paystack from 'paystack-sdk';
20
+ import {Paystack} from 'paystack-sdk';
21
21
 
22
22
  const paystack = new Paystack("secret_key);
23
23
  ```
@@ -25,7 +25,7 @@ const paystack = new Paystack("secret_key);
25
25
  For Javscript
26
26
 
27
27
  ```
28
- const Paystack = require('paystack-sdk');
28
+ const Paystack = require('paystack-sdk').Paystack;
29
29
  const paystack = new Paystack("secret_key");
30
30
  ```
31
31
 
@@ -33,7 +33,10 @@ All methods use promise meaning you can either use the `async...await` or `then.
33
33
 
34
34
  ### Available Functions
35
35
 
36
- - [Charge](https://github.com/en1tan/paystack-node/blob/main/src/charge/README.md)
37
- - [Transaction](https://github.com/en1tan/paystack-node/blob/main/src/transaction/README.md)
38
- - [Plan](https://github.com/en1tan/paystack-node/blob/main/src/plan/README.md)
39
- - [Customer](https://github.com/en1tan/paystack-node/blob/main/src/customer/README.md)
36
+ - Charge
37
+ - Customer
38
+ - Plan
39
+ - Product
40
+ - Subscription
41
+ - Transaction
42
+ - Transfer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paystack-sdk",
3
- "version": "1.0.19",
3
+ "version": "1.0.20",
4
4
  "description": "Paystack SDK written in Typescript",
5
5
  "main": "dist/index.js",
6
6
  "author": "Tech Priest",