Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Chore: Tag code snippet in readme
  • Loading branch information
damilola-paystack committed Sep 27, 2022
commit b17425de25b9792f76a03b697c325f1dd635a182
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ npm install @paystack/paystack-sdk --save

## Usage
Import and initialize the library:
```
```javascript
const Paystack = require('@paystack/paystack-sdk')
const paystack = new Paystack("sk_test_xxxxxx")

Expand All @@ -23,7 +23,7 @@ paystack.transaction.initialize({email: "test@example.com", amount: 20000})
```

Import and initialize the library using ES module with `async/await`:
```
```javascript
import Paystack from '@paystack/paystack-sdk'
const paystack = new Paystack("sk_test_xxxxxx")

Expand All @@ -42,7 +42,7 @@ initialize(email, amount)
```

### Typescript
```
```typescript
import Paystack from '@paystack/paystack-sdk';
const paystack = new Paystack("sk_test_xxxxxx");

Expand Down