Django Admin¶
django-athm includes a read-only admin interface for viewing transactions and managing webhooks.
Accessing the Admin¶
The admin views are automatically registered. Access at /admin/django_athm/.
Payments¶
View and search payment records.
List display: ecommerce_id, reference_number, status, total, refunded amount, date, customer
Filters: status, created_at, transaction_date
Search: reference_number, ecommerce_id, business_name, customer info, metadata
Processing Refunds¶
- Select one or more payments with the checkbox
- Choose Refund selected payments from the action dropdown
- Confirm the refund
Only completed payments with refundable amounts can be refunded.
Refunds¶
View refund records linked to payments.
List display: reference_number, payment link, amount, status, date, customer
Filters: status, transaction_date, created_at
Search: reference_number, payment reference_number, customer info
Webhook Events¶
View and manage webhook events received from ATH Móvil.
List display: id, event_type, processed status, payment link, refund link, remote_ip, date
Filters: event_type, processed, created_at
Search: id, payment info, refund info, remote_ip, idempotency_key
Installing Webhooks¶
- Navigate to Webhook Events in the admin
- Click Install Webhooks button
- Verify the auto-detected URL
- Click Submit
Reprocessing Events¶
To reprocess failed webhook events:
- Select events with the checkbox
- Choose Reprocess selected events from the action dropdown
- Confirm
Note
Successfully processed events cannot be reprocessed due to idempotency.
Clients¶
View customer records identified by phone number.
List display: phone_number, name, email, payment count, refund count, date
Filters: created_at, updated_at
Search: phone_number, name, email
Client records show the total number of payments and refunds for each customer.