0.1.2 • Published 11 months ago

@togtokh.dev/digipay v0.1.2

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
11 months ago

DIGI PAY

Example

    import DIGIPAY from "@togtokh.dev/digipay";

    DIGIPAY.auth
    .TOKEN({
      host: "staging",
      client_id: "",
      client_secret: "",
      merchantId: "",
      merchantName: "",
      terminalId: "",
    })
    .then(async (r) => {
      console.log(r);
      const invoice = await DIGIPAY.invoice.CREATE({
        amount: 100,
        webHookUrl: "https://looktv.mn/home",
      });
      console.log(invoice);
      if (invoice.data?.invoiceId) {
        const info = await DIGIPAY.invoice.INFO(invoice.data?.invoiceId);
        console.log(info);
      }
    })
    .catch((e) => {
      console.log(e);
    });
0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago