Payment Gateway Account not created

When creating Stripe Settings, I am getting the error “Payment Gateway Account not created”. If you add it manually, it leads to an error when implementing it in a webform:

Traceback (most recent call last): File "apps/frappe/frappe/website/serve.py", line 18, in get_response response = renderer_instance.render() File "apps/frappe/frappe/website/page_renderers/template_page.py", line 84, in render html = self.get_html() File "apps/frappe/frappe/website/utils.py", line 524, in cache_html_decorator html = func(*args, **kwargs) File "apps/frappe/frappe/website/page_renderers/template_page.py", line 95, in get_html self.update_context() File "apps/frappe/frappe/website/page_renderers/template_page.py", line 163, in update_context data = self.run_pymodule_method("get_context") File "apps/frappe/frappe/website/page_renderers/template_page.py", line 225, in run_pymodule_method return method(self.context) File "apps/payments/payments/templates/pages/stripe_checkout.py", line 36, in get_context gateway_controller = get_gateway_controller(context.reference_doctype, context.reference_docname) File "apps/payments/payments/payment_gateways/doctype/stripe_settings/stripe_settings.py", line 279, in get_gateway_controller "Payment Gateway", reference_doc.payment_gateway, "gateway_controller" AttributeError: 'Document' object has no attribute 'payment_gateway'

Hi @mrPauwHaan
Such an error occurs when the payment gateway is not created as its gateway in the doctype.

Thank You!

Thanks for your reply. I was not aware that I have to specify the gateway in the doctype. It is fixed now