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>
20 lines
636 B
Python
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",
|
|
)
|