From 85bf61cdfe5d52cbe0f10e934d947af7ba173dfa Mon Sep 17 00:00:00 2001 From: iamshabell <91321698+iamshabell@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:13:21 +0300 Subject: [PATCH] update: README.md --- README.md | 6 +++--- packages/marupay/README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9b7ca91..577890e 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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", }); @@ -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", }); diff --git a/packages/marupay/README.md b/packages/marupay/README.md index 9b7ca91..577890e 100644 --- a/packages/marupay/README.md +++ b/packages/marupay/README.md @@ -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 @@ -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", }); @@ -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", });