diff --git a/payments/templates/pages/razorpay_checkout.py b/payments/templates/pages/razorpay_checkout.py index b4f9e74..d0e77f6 100644 --- a/payments/templates/pages/razorpay_checkout.py +++ b/payments/templates/pages/razorpay_checkout.py @@ -51,7 +51,7 @@ def get_context(context): def get_api_key(): - api_key = frappe.db.get_value("Razorpay Settings", None, "api_key") + api_key = frappe.db.get_single_value("Razorpay Settings", "api_key") if cint(frappe.form_dict.get("use_sandbox")): api_key = frappe.conf.sandbox_api_key