Skip to content

Commit

Permalink
update: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
iamshabell committed Dec 11, 2023
1 parent e643a21 commit 85bf61c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To get started, import the necessary modules and configure the SDK with your cre
```typescript
import { config } from 'dotenv';
import express from 'express';
import { HandlerName, ConfigObject, getPaymentHandler } from 'marupay';
import { HandlerName, ConfigObject, getPaymentHandler, Currency } from 'marupay';
import { env } from 'process';

// Load environment variables from a .env file
Expand Down Expand Up @@ -61,7 +61,7 @@ app.get('/purchase', async (req, res) => {
const paymentInfo = await handler.request({
accountNumber: "6512312341",
amount: 500,
currency: "SLSH",
currency: Currency.SLSH,
description: "Test purchase",
});

Expand All @@ -81,7 +81,7 @@ app.get('/credit', async (req, res) => {
const paymentInfo = await handler.credit({
accountNumber: "6512312341",
amount: 1000,
currency: "SLSH",
currency: Currency.SLSH,
description: "Test credit",
});

Expand Down
6 changes: 3 additions & 3 deletions packages/marupay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ To get started, import the necessary modules and configure the SDK with your cre
```typescript
import { config } from 'dotenv';
import express from 'express';
import { HandlerName, ConfigObject, getPaymentHandler } from 'marupay';
import { HandlerName, ConfigObject, getPaymentHandler, Currency } from 'marupay';
import { env } from 'process';

// Load environment variables from a .env file
Expand Down Expand Up @@ -61,7 +61,7 @@ app.get('/purchase', async (req, res) => {
const paymentInfo = await handler.request({
accountNumber: "6512312341",
amount: 500,
currency: "SLSH",
currency: Currency.SLSH,
description: "Test purchase",
});

Expand All @@ -81,7 +81,7 @@ app.get('/credit', async (req, res) => {
const paymentInfo = await handler.credit({
accountNumber: "6512312341",
amount: 1000,
currency: "SLSH",
currency: Currency.SLSH,
description: "Test credit",
});

Expand Down

0 comments on commit 85bf61c

Please sign in to comment.