Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

Commit

Permalink
Fix code indentation on README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinitto committed Jun 4, 2019
1 parent 2482a3f commit cca05f1
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ This is Typescript package that can be used in any of your favorite frameworks l

Install it as usual:

```bash
npm install --save mtn-pay
```
```bash
npm install --save mtn-pay
```

## Usage

Expand Down Expand Up @@ -41,7 +41,7 @@ The __mtn-pay__ package exposes four entities you can work with:

> For programmatically generating __API USER ID__ and __API USER KEY__ for sandbox testing.
```typescript
```typescript
import SandboxApiUser from 'mtn-pay/lib/sandboxApiUser';

const baseURL = "https://ericssonbasicapi2.azure-api.net/v1_0"; // or some other, check the docs
Expand All @@ -60,7 +60,7 @@ The __mtn-pay__ package exposes four entities you can work with:
return { apiKey, apiUserId};
}

```
```

Use the __SandboxApiUser__ to generate an __API user ID__ and __API Key__ when working with the sandbox. You will need these to access any of the other products. Ideally, you will use this entity before the others.

Expand All @@ -70,7 +70,7 @@ __For the production environment, the API user ID and API Key are obtained throu

> For getting the __balance__ and the __currency__ of your merchant account for a given product i.e. 'collection', 'disbursement' or 'remittance'
```typescript
```typescript
import Account, { IAccountConfig, AccountTypes } from 'mtn-pay/lib/account';

const accountConfig: IAccountConfig = {
Expand All @@ -92,13 +92,13 @@ __For the production environment, the API user ID and API Key are obtained throu
const balance = details.balance;
const currency = details.currency;
}
```
```

### 3. Transaction

> To create a transaction whether it is to request for payment or to disburse money to another person.
```typescript
```typescript
import Transaction, {
IStatus,
ITransactionBody,
Expand Down Expand Up @@ -156,19 +156,19 @@ __For the production environment, the API user ID and API Key are obtained throu
reason
} = details;
}
```
```

### 4. Core

> For any future transaction types or if you want to extend the BaseProduct class
```typescript
```typescript
import { BaseProduct, IApiToken } from 'mtn-pay/lib/core';

export class ChildProduct extends BaseProduct {
// ...
}
```
```

## Advanced Docs

Expand Down

0 comments on commit cca05f1

Please sign in to comment.