[fix] validate minimum transaction amount in Payment Request for selected payment gateway (#13328)
diff --git a/erpnext/accounts/doctype/payment_request/payment_request.py b/erpnext/accounts/doctype/payment_request/payment_request.py
index 21ddb10..ee20a43 100644
--- a/erpnext/accounts/doctype/payment_request/payment_request.py
+++ b/erpnext/accounts/doctype/payment_request/payment_request.py
@@ -78,6 +78,9 @@
controller = get_payment_gateway_controller(self.payment_gateway)
controller.validate_transaction_currency(self.currency)
+ if hasattr(controller, 'validate_minimum_transaction_amount'):
+ controller.validate_minimum_transaction_amount(self.currency, self.grand_total)
+
return controller.get_payment_url(**{
"amount": flt(self.grand_total, self.precision("grand_total")),
"title": data.company.encode("utf-8"),