H2H Payment Gateway

Struktur & Alur H2H Payment Gateway

Halaman ini menjelaskan role admin, user/merchant, API key, payment, struk, APK notifikasi, dan callback.

Struktur Role

RoleURLFungsi
Admin/admin/login.phpBuat user/merchant, aktifkan/blokir, reset password, atur fee, lihat transaksi, retry callback.
User/Merchant/user/login.phpLogin, ambil API key, atur callback URL, lihat docs API, lihat transaksi dan struk.
API Merchant/api/create-payment.phpMembuat payment dari website/aplikasi user.
APK Notifikasi/api/notifikasi-bank.php?token=...Mengirim nominal transfer masuk ke gateway.

Alur Payment

  1. Admin membuat user/merchant.
  2. User login dan mengambil API key.
  3. User memasang API key di website/aplikasi miliknya.
  4. User request Create Payment ke gateway.
  5. Gateway membuat tagihan dengan kode unik dan mengembalikan total_amount serta struk_url.
  6. Customer transfer sesuai total_amount.
  7. APK notifikasi bank mengirim nominal transfer ke gateway.
  8. Gateway mencari payment pending dengan nominal yang sama.
  9. Kalau cocok, status jadi paid.
  10. Gateway kirim callback ke URL user/merchant.
  11. User/merchant bisa cek status atau buka struk.

Endpoint Utama

POST https://auth.anhtronik.com/api/create-payment.php
GET  https://auth.anhtronik.com/api/check-payment.php?payment_id=1
POST https://auth.anhtronik.com/api/notifikasi-bank.php?token=APK_TOKEN
GET  https://auth.anhtronik.com/struk.php?payment_id=1&key=...

Default Login Setelah Install

Admin:
URL      : https://auth.anhtronik.com/admin/login.php
Username : admin
Password : admin123456

User/Merchant:
URL      : https://auth.anhtronik.com/user/login.php
Email    : user@demo.local
Password : user123456
API Key  : h2h_demo_user_123456
H2H Payment Gateway Multi Merchant