Skip to content

Commit

Permalink
add(example): express ts to use the currency enums
Browse files Browse the repository at this point in the history
  • Loading branch information
iamshabell committed Dec 11, 2023
1 parent eec38de commit a67996b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/express-ts/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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 @@ -37,7 +37,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 @@ -57,7 +57,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 a67996b

Please sign in to comment.