Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoCardless Payments not working #93

Open
torstenhoegel opened this issue Jul 11, 2024 · 0 comments
Open

GoCardless Payments not working #93

torstenhoegel opened this issue Jul 11, 2024 · 0 comments

Comments

@torstenhoegel
Copy link

Hello there,

my setup is in the Frappecloud:
CleanShot 2024-07-11 at 10 33 01@2x

I've added a GoCardless account:

CleanShot 2024-07-11 at 10 34 06@2x

What I tried is to setup an invoice and added a payment request with the payment gateway account added.
What happened next:
I've received an email:
CleanShot 2024-07-11 at 10 36 41@2x

As you can see, there's no payment link .. anything else I have to setup for this to work?

I also checked the mandate list but it's empty, although I have added one manually in GoCardless. Is it supposed to show up here?

The last thing I tried was to setup an portal customer account and access the invoice there.
It shows up (with the GoCardless Setting):

CleanShot 2024-07-11 at 10 39 08@2x

but when clicking on it there's an error:

CleanShot 2024-07-11 at 10 40 15@2x

Traceback (most recent call last):
  File "apps/frappe/frappe/website/serve.py", line 20, 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 523, in cache_html_decorator
    html = func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 101, in get_html
    html = self.render_template()
           ^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/website/page_renderers/template_page.py", line 236, in render_template
    html = frappe.render_template(self.source, self.context, safe_render=safe_render)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/utils/jinja.py", line 97, in render_template
    return get_jenv().from_string(template).render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "env/lib/python3.11/site-packages/jinja2/environment.py", line 1304, in render
    self.environment.handle_exception()
  File "env/lib/python3.11/site-packages/jinja2/environment.py", line 939, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "<template>", line 179, in top-level template code
  File "apps/frappe/frappe/templates/web.html", line 1, in top-level template code
    {% extends base_template_path %}
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/templates/base.html", line 77, in top-level template code
    {% block content %}
  File "apps/frappe/frappe/templates/web.html", line 63, in block 'content'
    {{ main_content() }}
  File "env/lib/python3.11/site-packages/jinja2/sandbox.py", line 394, in call
    return __context.call(__obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "env/lib/python3.11/site-packages/jinja2/runtime.py", line 782, in _invoke
    rv = self._func(*arguments)
         ^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/templates/web.html", line 15, in template
    {% block page_container %}
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/templates/web.html", line 30, in block 'page_container'
    {%- block page_content -%}{%- endblock -%}
    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<template>", line 110, in block 'page_content'
  File "env/lib/python3.11/site-packages/jinja2/sandbox.py", line 394, in call
    return __context.call(__obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "env/lib/python3.11/site-packages/jinja2/runtime.py", line 782, in _invoke
    rv = self._func(*arguments)
         ^^^^^^^^^^^^^^^^^^^^^^
  File "<template>", line 176, in template
  File "env/lib/python3.11/site-packages/jinja2/sandbox.py", line 394, in call
    return __context.call(__obj, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "apps/frappe/frappe/core/utils.py", line 91, in html2text
    return md(html, heading_style="ATX", strip=strip, wrap=wrap)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "env/lib/python3.11/site-packages/markdownify/__init__.py", line 395, in markdownify
    return MarkdownConverter(**options).convert(html)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "env/lib/python3.11/site-packages/markdownify/__init__.py", line 96, in convert
    soup = BeautifulSoup(html, 'html.parser')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "env/lib/python3.11/site-packages/bs4/__init__.py", line 315, in __init__
    elif len(markup) <= 256 and (
         ^^^^^^^^^^^
TypeError: object of type 'NoneType' has no len()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant