QRIS Hook is a native Android Kotlin app that watches QRIS payment notifications from merchant apps and sends matching payment events to a webhook URL that you control.
Landing page and full documentation (Bahasa Indonesia and English) live in website/, built with Astro + Starlight and deployed to Cloudflare Pages.
The site is deployed automatically when a version tag (vX.Y.Z) is pushed, using the Deploy website workflow. It needs the CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID repository secrets.
QRIS Hook is provided for lawful notification monitoring and webhook automation where the user has the right and permission to access the relevant device, notifications, merchant account, and webhook endpoint.
You are solely responsible for how you configure, deploy, and use this application, including compliance with applicable laws, regulations, merchant terms, privacy obligations, and third-party service policies.
Any misuse of this application, including unauthorized access, privacy violations, data manipulation, fraudulent activity, or other unlawful use, is outside the control and responsibility of the author and contributors.
This software is provided "as is", without warranty of any kind. To the maximum extent permitted by law, the author and contributors are not liable for any claim, damage, loss, service interruption, data loss, or other liability arising from the use, misuse, inability to use, or distribution of this software.
QRIS Hook is an independent project and is not affiliated with, endorsed by, or sponsored by Bank Indonesia, ASPI, PT Bank Rakyat Indonesia (Persero) Tbk, GoTo/GoPay, or the InterActive QRIS provider. QRIS and all merchant app names are trademarks of their respective owners and are mentioned only to describe compatibility.
- Notification monitoring with
NotificationListenerService. - Backend-agnostic webhook delivery using JSON
POSTrequests. - Multiple webhooks: route each merchant to its own webhook URL (several merchants can share one), each with its own optional
X-Webhook-Secretheader. - Built-in English and Indonesian UI, selectable in the app or following the system language.
- Built-in merchant selection through
MerchantRegistry. - Merchant-specific parsers for package matching and QRIS payment extraction.
- Webhook payloads with formatted payment data and raw notification fields.
- Local Room queue with background retry using WorkManager.
- Debug mode for capturing raw notification payloads from selected apps.
- Enable notification access for QRIS Hook in Android settings.
- Add one or more webhooks (name, URL, optional secret) in the app and tap Send test to check each one.
- Select the merchant apps you want QRIS Hook to monitor, and choose which webhook each merchant is sent to. Merchants without a choice use the default webhook.
- When a matching QRIS payment notification arrives, QRIS Hook parses it into a payment event.
- The event is queued locally and delivered to your webhook in the background.
When debug mode is enabled, QRIS Hook stores raw notification payloads from selected apps instead of processing them as payment events. This is useful for adding or fixing merchant parsers.
QRIS Hook Active is the master switch for QRIS Hook notification handling. When it is turned off, QRIS Hook does not process incoming notifications at all, even if Debug Mode is enabled. Existing merchant selections, debug settings, and selected debug packages remain saved, but no payment events or debug payloads are created until QRIS Hook is active again.
When Debug Mode is enabled while QRIS Hook is active, debug capture takes priority over normal QRIS processing. Notifications from selected debug packages are saved as raw payloads, and webhook delivery is skipped for those notifications.
| QRIS Hook Active | Debug Mode | Behavior |
|---|---|---|
| Off | Off | Incoming notifications are ignored. |
| Off | On | Incoming notifications are still ignored; no debug logs are captured. |
| On | Off | Matching QRIS notifications are parsed and queued for webhook delivery. |
| On | On | Raw notifications from selected debug packages are saved; webhook delivery is skipped. |
QRIS Hook does not send webhook requests directly from Android's notification
listener callback. Matching QRIS notifications are first saved into the local
Room database, then QRIS Hook immediately attempts webhook delivery from the
app's background coroutine. WebhookDeliveryWorker is kept as the retry and
fallback path for failed or still-queued events.
Delivery flow:
NotificationProcessorreads the current settings.- If
QRIS Hook Activeis off, the notification is ignored. - If
Debug Modeis on, selected raw notification payloads are saved and webhook delivery is skipped. - In normal mode, the notification is matched against the selected merchant parsers.
- Every matching payment event is inserted into the local queue with status
Pending. - QRIS Hook immediately marks the event as
Sendingand sends it as a JSONPOSTrequest to the configured webhook URL. - A successful 2xx response marks the event as
Sent. - A failed request marks the event as
Failedand enqueuesWebhookDeliveryWorkerfor retry.
Pending does not mean the webhook request has already failed. It means the
event has been saved and is waiting to enter delivery. For newly received
notifications this should be brief because QRIS Hook attempts delivery
immediately after inserting the event. When delivery starts, the status is first
changed to Sending. If the request succeeds with a 2xx response, the status
becomes Sent. If the request fails, the status becomes Failed and the event
remains eligible for retry.
If a new event stays at Pending for more than a moment, immediate delivery did
not start for that event. Check that notification processing did not fail before
the delivery step and that the app has a saved webhook URL. For older queued
events, use the app's Retry pending button to enqueue
WebhookDeliveryWorker; the worker requires a connected network and may still be
affected by Android background scheduling.
Delivery status:
| Status | Meaning |
|---|---|
Pending |
Event has been queued and is waiting to enter delivery. |
Sending |
Webhook delivery is currently being attempted. |
Sent |
Webhook returned a successful 2xx response. |
Failed |
Last delivery attempt failed and the event remains eligible for retry. |
Retry behavior:
- New events are attempted immediately after they are saved.
- The worker processes retry/fallback events with status other than
Sent, oldest first, in batches of up to 10. - Successful 2xx responses mark the event as
Sent. - Non-2xx HTTP responses, network errors, invalid webhook URL errors, timeout errors, and Android network security errors are recorded as failures.
- Failed attempts update
lastError,lastResponseCode,lastResponseMessage,lastResponseBody,lastWebhookAttemptAtMillis, and incrementattempts. - If any event in the batch fails, the worker returns
Result.retry(). - WorkManager retries with exponential backoff starting at 30 seconds.
- New retry enqueues replace the existing unique retry work so they are not appended behind an old retry chain.
- QRIS Hook currently has no app-level maximum retry limit; failed events remain in the queue until they are eventually sent or the app data is cleared.
{
"event_id": "uuid",
"type": "qris.payment.success",
"merchant_id": "demo_merchant",
"source_package": "com.example.merchant",
"source_app": "Demo Merchant",
"received_at": "2030-05-21T12:00:00+07:00",
"notification": {
"source_package": "com.example.merchant",
"source_app": "Demo Merchant",
"title": "string",
"text": "string",
"big_text": "string",
"received_at": "2030-05-21T12:00:00Z"
},
"payment": {
"amount": 10000,
"currency": "IDR",
"sender_name": "John Doe",
"payment_source": "Demo"
},
"raw": {
"source_package": "com.example.merchant",
"source_app": "Demo Merchant",
"title": "string",
"text": "string",
"big_text": "string",
"received_at": "2026-05-21T12:00:00Z"
}
}If the webhook has a secret, the request includes:
X-Webhook-Secret: your-secretRequirements:
- Android Studio or a configured Android SDK.
- JDK 17 or newer.
Build the debug APK:
./gradlew assembleDebugRun unit tests:
./gradlew testDebugUnitTestThe debug APK is generated at:
app/build/outputs/apk/debug/app-debug.apk
The GitHub Actions release workflow runs only when a version tag (vX.Y.Z) is
pushed. It uses the tag as the app version, builds a signed release APK,
creates a GitHub Release with generated notes, and uploads the APK as a release
asset. Pushes to branches do not trigger a release.
To publish a new version:
git tag v1.3.0
git push origin v1.3.0Required GitHub repository secrets:
ANDROID_KEYSTORE_BASE64ANDROID_KEYSTORE_PASSWORDANDROID_KEY_ALIASANDROID_KEY_PASSWORD
Create ANDROID_KEYSTORE_BASE64 from the release keystore:
base64 -w 0 release-keystore.jksAdd a new parser that extends MerchantParser, then register it in MerchantRegistry.builtInParsers:
object ExampleMerchantParser : MerchantParser() {
override val merchantId = "merchant_id"
override val displayName = "Merchant Name"
override val merchantPackages = listOf("package.name.merchant")
private val successKeywords = listOf("qris", "success", "paid")
private val ignoreKeywords = listOf("failed", "refund", "promo")
override fun parse(notification: ObservedNotification): QrisPaymentEvent? {
// Implement merchant-specific parsing here.
return null
}
}If multiple selected parsers can handle the same notification, every valid event is added to the webhook queue.
Notification formats vary between merchant apps and app versions. If QRIS Hook does not recognize a merchant notification, you can help by sharing a debug payload.
- Enable notification access for QRIS Hook in Android settings.
- Open QRIS Hook and enable
Debug Mode. - Select the merchant app you want to capture.
- Trigger a real or test QRIS notification from that merchant app.
- Open
Debug Logsin QRIS Hook. - Open the captured log and tap
Request support. - Optionally add the expected payment details and a contact.
- Review the
Debug payloadfield, replace customer names with[NAME], confirm, and tapSend.
The request is sent directly from the app, so no GitHub account is needed. The debug payload is always included, because merchant support requests without one cannot be implemented reliably. Before it is shown, PayloadRedactor masks long digit sequences (transaction IDs, account and phone numbers), email addresses, and person/message extras. Customer names cannot be detected automatically, so the payload stays editable; prefer a test notification when possible. Requests are handled under the Privacy policy.
Developers can still open a Merchant parser request GitHub issue manually using the issue template.
The app posts to a Cloudflare Pages Function (website/functions/api/merchant-request.ts), which creates an issue in a private GitHub repository. Set these in Cloudflare Pages → Settings → Variables and Secrets (Production). Do not add a wrangler.jsonc to website/: Cloudflare then treats the project as config-managed and ignores dashboard variables.
GITHUB_TOKEN(secret): fine-grained personal access token limited to the private requests repository, withIssues: Read and write.GITHUB_REPO: the private repository, for examplesuriyadi15/qrishook-requests.
The function limits each IP to 5 requests per hour using the Cache API, so no paid Cloudflare plan or extra binding is needed. This is best-effort per data center, not a hard guarantee.
For local development, put the variables in website/.dev.vars (git-ignored) and run npx wrangler pages dev dist.
QRIS Hook is free and open source. If it saves you time, you can support development via GitHub Sponsors or Trakteer.
QRIS Hook is released under the MIT License.






