npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@manjopackage/qris-payment-sdk

v1.0.2

Published

SDK JavaScript/TypeScript ringan untuk integrasi pembayaran QRIS melalui gateway Poppay. Memungkinkan Anda membuka jendela pembayaran (popup) dengan minimal konfigurasi dan mendukung data dinamis.

Readme

QRIS Payment SDK

SDK JavaScript/TypeScript ringan untuk integrasi pembayaran QRIS melalui gateway Poppay. Memungkinkan Anda membuka jendela pembayaran (popup) dengan minimal konfigurasi dan mendukung data dinamis.

✨ Fitur

  • 🚀 Ringan: Tanpa dependensi berat.
  • 📦 Multi-Format: Mendukung ESM (NPM) dan UMD (CDN).
  • 🛠 Dinamis: Data transaksi bisa diinput dari sisi client.
  • 🔗 Auto-Inquiry: Sudah termasuk logika pengecekan status pembayaran otomatis.

⚙️ Instalasi

Menggunakan NPM (Next.js, React, Vue, Laravel Vite)

npm i @manjopackage/qris-payment-sdk

Menggunakan CDN (Laravel Blade, HTML Statis)

Tambahkan script ini sebelum penutup tag </body>:

<script src="https://unpkg.com/@manjopackage/qris-payment-sdk/dist/qris-sdk.umd.js"></script>

🚀 Cara Penggunaan

1. Penggunaan di Framework Modern (ESM)

Jika Anda menggunakan bundler seperti Vite atau Webpack:

import { QrisSDK } from '@ilhampambudi/qris-payment-sdk';

const qris = new QrisSDK({
  amount: 50000
});

// Panggil fungsi ini pada event click tombol
const handlePay = () => {
  qris.openPayment();
};

2. Penggunaan di Laravel / Vanilla JS (UMD)

Setelah memanggil script dari CDN, class QrisSDK akan tersedia di objek window.

<button id="pay-button">Bayar Sekarang</button>

<script>
  const btn = document.getElementById('pay-button');
  
  const qris = new QrisSDK({
    amount: 15000,
    // Data lainnya akan menggunakan default jika tidak diisi
  });

  btn.onclick = () => {
    qris.openPayment();
  };
</script>

📖 Konfigurasi (Options)

Anda dapat mengirimkan objek konfigurasi saat inisialisasi new QrisSDK(config).

| Parameter | Tipe Data | Default | Deskripsi | | --- | --- | --- | --- | | amount | number | 10000 | Jumlah pembayaran dalam satuan Rupiah (IDR). | | notes | string | 'Payment via SDK' | Catatan transaksi yang akan muncul pada mutasi/laporan. | | externalId | string | ORDER-{timestamp} | ID unik dari sistem Anda untuk mempermudah rekonsiliasi. | | expirationInterval | number | 300 | Masa berlaku QR Code dalam hitungan detik (Default 5 menit). | | title | string | 'Pembayaran QRIS' | Judul teks yang ditampilkan pada header jendela popup. | | themeColor | string | '#1f2937' | Kode warna Hex untuk elemen UI (tombol, aksen, dll). | | baseUrl | string | 'https://uatapi...' | Endpoint API Gateway (gunakan Production URL untuk live). | | email | string | '[email protected]' | Email kredensial untuk login ke gateway. | | password | string | 'W8nu3...' | Password kredensial untuk login ke gateway. |


🛡 Keamanan (Penting)

Sangat disarankan untuk tidak mengekspos password Poppay Anda langsung di sisi client (Frontend) pada lingkungan produksi.

Rekomendasi: Gunakan backend bridge (API Laravel/NodeJS Anda sendiri) untuk melakukan proses autentikasi dan pembuatan transaksi, kemudian gunakan SDK ini hanya untuk menampilkan QR Code dan melakukan inquiry.