alitnk / monopay

💳 A node.js package for making payment transactions with different payment gateways
https://monopay.js.org
MIT License
114 stars 19 forks source link

Documentation is outdated #64

Closed Keivan-sf closed 2 months ago

Keivan-sf commented 2 months ago

As mentioned in #63, on this page the following code is outdated since v2:

import { getPaymentDriver } from "monopay";

const driver = getPaymentDriver("zarinpal", {
  merchantId: "zarinpal-merchant",
});

const paymentInfo = await driver.requestPayment({
  amount: 50000,
  callbackUrl: "https://my-site.com/callback",
  description: "Description about the transaction",
});