new-site/frappe_adyen/frappe_adyen/install.py
justin f8cd37ac8c Initial commit — Performance West telecom compliance platform
Includes: API (Express/TypeScript), Astro site, Python workers,
document generators, FCC compliance tools, Canada CRTC formation,
Ansible infrastructure, and deployment scripts.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-27 06:54:22 -05:00

20 lines
636 B
Python

import frappe
def before_install():
"""Verify the frappe/payments app is installed — frappe_adyen depends on it."""
installed = frappe.get_installed_apps()
if "payments" not in installed:
frappe.throw(
"The 'payments' app must be installed before frappe_adyen. "
"Run: bench get-app payments && bench --site <site> install-app payments"
)
def after_install():
frappe.msgprint(
"Adyen Payment Gateway installed successfully. "
"Go to Adyen Settings to configure your API credentials.",
title="frappe_adyen installed",
indicator="green",
)