Ragia Payment Simulator v1.2

Payment Gateway Webhook Simulation Tool for Billing Integration Testing.

Configuration

Target endpoint and HMAC secret settings.

PDS Receiver

Receives RAGia overage push calls. Use the same simulator base URL in both PDS fields while testing.

Use your ngrok origin here when RAGia backend is remote. This only changes the snippets below.

Final: http://localhost:3000/api/v1/overage/consent

Final: http://localhost:3000/api/v1/overage/report

RAGia stores base URLs only. It appends /api/v1/overage/consent and /api/v1/overage/report automatically.

MCP Server

Model Context Protocol server for RAGia integration.

Tool: billing_load_test_tool

Params: complexity (1-10)

Tool: pokemon_info

Params: name (string)

Agrega esta URL en la configuracion de MCP de RAGia para habilitar las herramientas.

Waiting for MCP events...

New Subscription

Trigger subscription.created

To:
http://localhost:8000/api/webhooks/billing

Change Plan

Trigger subscription.updated

To:
http://localhost:8000/api/webhooks/billing

Cancel Webhook

Trigger subscription.canceled

Warning: This will immediately revoke access for the organization.
To:
http://localhost:8000/api/webhooks/billing

Simulate Usage

Track usage to test plan limits.

1 msgs

Simulates sending 1 chat messages in rapid succession.

To:
http://localhost:8000/api/billing/track/message

Admin Config Reader

Verify platform_config values and encrypted platform secret metadata from RAGia.

Self-Service Cancel

Test POST /api/billing/cancel — cancels the tenant's active subscription.

Aludra Admin Mock — Subscription Store

In-memory subscription store seeded with 2 canonical Aludra subs. Survives HMR; resets on full server restart or via the button below.

Add subscription

Advance period

Simulates a successful renewal — moves period_end forward and sets status to active. Use recurrent-auto to simulate the full billing trigger via RAGia.

Seeded subscriptions:

sub_seed_active_001 — Active, org 07e8d122-..., period ends 2026-06-07

sub_seed_overdue_002 — Past due, org a1b2c3d4-..., period ended 2026-05-23

Endpoint: GET /api/v1/subscriptions/system/subscription/:id

Endpoint: POST /api/v1/admin/system/subscriptions/:id/recurrent-auto

Tokenization Test

Tokenize a card via RAGia backend → Aludra mock. Verifies PCI flow end-to-end.