Skip to content

Commit

Permalink
docs: update the docs guide to use the curreny enums
Browse files Browse the repository at this point in the history
  • Loading branch information
iamshabell committed Dec 11, 2023
1 parent a67996b commit 454be02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/docs/pages/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ To start using the MaruPay SDK in your application, the first step is to configu
```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
2 changes: 1 addition & 1 deletion apps/docs/pages/guide/credit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ app.get('/purchase', async (req, res) => {
const paymentInfo = await handler.request({
accountNumber: "6512312341",
amount: 500,
currency: "SLSH",
currency: Currency.SLSH,
description: "Test purchase",
accountType: 'CUSTOMER'
});
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/pages/guide/purchase.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ app.get('/credit', async (req, res) => {
const paymentInfo = await handler.request({
accountNumber: "6512312341",
amount: 500,
currency: "SLSH",
currency: Currency.SLSH,
description: "Test purchase",
});

Expand Down

0 comments on commit 454be02

Please sign in to comment.