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 🙏

© 2025 – Pkg Stats / Ryan Hefner

tripay-strapi

v0.0.5

Published

Tripay integration with strapi

Readme

Tripay Payment Gateway Plugin for Strapi

Plugin terintegrasi dengan Tripay, payment gateway asal Indonesia untuk aplikasi Strapi.

Fitur

  • Integrasi dengan API Tripay
  • Dashboard admin interaktif untuk memantau transaksi
  • Konfigurasi payment methods
  • Mendukung semua channel pembayaran Tripay
  • Callback handler untuk update status transaksi otomatis
  • Riwayat transaksi lengkap

Instalasi

# Menggunakan npm
npm install tripay-strapi

# Menggunakan yarn
yarn add tripay-strapi

Setelah instalasi, restart Strapi dan aktifkan plugin melalui panel admin.

Konfigurasi

  1. Masuk ke admin panel Strapi
  2. Buka menu "Plugins" dan klik "Tripay Payment Gateway"
  3. Buka tab "Settings"
  4. Masukkan API Key, Private Key, dan Merchant Code dari akun Tripay Anda
  5. Pilih mode Sandbox/Production
  6. Pilih metode pembayaran yang ingin diaktifkan
  7. Simpan pengaturan

Penggunaan

Membuat Transaksi Baru

// Contoh menggunakan Strapi Service
const paymentData = {
  method: 'BRIVA', // Kode metode pembayaran (dari API Tripay)
  merchantRef: 'INV123456', // Nomor invoice Anda
  amount: 150000, // Jumlah dalam rupiah
  customerName: 'Nama Pelanggan',
  customerEmail: '[email protected]',
  customerPhone: '081234567890',
  callbackUrl: 'https://yourdomain.com/callback', // Opsional
  returnUrl: 'https://yourdomain.com/thankyou', // Opsional
  expiredTime: 24 * 60, // Waktu kedaluwarsa dalam menit (opsional)
  items: [
    {
      name: 'Produk 1',
      price: 150000,
      quantity: 1
    }
  ]
};

const result = await strapi
  .plugin('tripay-strapi')
  .service('tripay')
  .createTransaction(paymentData);

// result berisi referensi transaksi, checkout URL, dll.

Mendapatkan Status Transaksi

const transaction = await strapi
  .plugin('tripay-strapi')
  .service('transaction')
  .getTransaction('T123456789');

// transaction berisi data transaksi termasuk status pembayaran

Callback

Plugin secara otomatis menangani callback dari Tripay dan memperbarui status transaksi. Pastikan URL callback dapat diakses oleh server Tripay.

Dokumentasi API

Berikut adalah endpoint API yang tersedia:

Content API

  • GET /tripay-strapi/payment-channels - Daftar metode pembayaran yang tersedia
  • POST /tripay-strapi/create-transaction - Membuat transaksi baru
  • GET /tripay-strapi/transaction/:reference - Mendapatkan detail transaksi
  • GET /tripay-strapi/transactions - Daftar transaksi
  • POST /tripay-strapi/callback - Endpoint untuk callback dari Tripay

Lisensi

MIT

Dukungan

Untuk pertanyaan atau bantuan, silakan buka issue di GitHub.