PayPal error from payment link

Using ERPNExt cloud and all is up to date
Installed PayPal module
I have sent the payment request email, clicked the link, and I then get this error message

Traceback (innermost last):
  File "/home/frappe/press/benches/1603091141/apps/frappe/frappe/app.py", line 60, in application
    response = frappe.api.handle()
  File "/home/frappe/press/benches/1603091141/apps/frappe/frappe/api.py", line 50, in handle
    return frappe.handler.handle()
  File "/home/frappe/press/benches/1603091141/apps/frappe/frappe/handler.py", line 19, in handle
    execute_cmd(cmd)
  File "/home/frappe/press/benches/1603091141/apps/frappe/frappe/handler.py", line 36, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File "/home/frappe/press/benches/1603091141/apps/frappe/frappe/__init__.py", line 803, in call
    return fn(*args, **newargs)
  File "/home/frappe/press/benches/1603091141/apps/erpnext/erpnext/accounts/doctype/payment_request/payment_request.py", line 256, in generate_payment_request
    frappe.get_doc("Payment Request", name).run_method("get_payment_url")
  File "/home/frappe/press/benches/1603091141/apps/frappe/frappe/model/document.py", line 575, in run_method
    return Document.hook(fn)(self, *args, **kwargs)
  File "/home/frappe/press/benches/1603091141/apps/frappe/frappe/model/document.py", line 731, in composer
    return composed(self, method, *args, **kwargs)
  File "/home/frappe/press/benches/1603091141/apps/frappe/frappe/model/document.py", line 716, in runner
    add_to_return_value(self, f(self, method, *args, **kwargs))
  File "/home/frappe/press/benches/1603091141/apps/paypal_integration/paypal_integration/utils.py", line 8, in get_payment_url
    set_express_checkout(doc.grand_total, doc.currency, {"doctype": doc.doctype, "docname": doc.name})
  File "/home/frappe/press/benches/1603091141/apps/paypal_integration/paypal_integration/express_checkout.py", line 24, in set_express_checkout
    validate_transaction_currency(currency)
  File "/home/frappe/press/benches/1603091141/apps/paypal_integration/paypal_integration/express_checkout.py", line 163, in validate_transaction_currency
    frappe.throw(_("Please select another payment method. PayPal not supports transaction currency {}".format(currency)))
  File "/home/frappe/press/benches/1603091141/apps/frappe/frappe/__init__.py", line 262, in throw
    msgprint(msg, raise_exception=exc)
  File "/home/frappe/press/benches/1603091141/apps/frappe/frappe/__init__.py", line 255, in msgprint
    _raise_exception()
  File "/home/frappe/press/benches/1603091141/apps/frappe/frappe/__init__.py", line 240, in _raise_exception
    raise raise_exception, encode(msg)
 ValidationError: Please select another payment method. PayPal not supports transaction currency GBP

This suggests that PayPal module does not support GBP

Any ideas?

Just had a look and paypal_integration/express_checkout.py needs to have GBP added. I might try to do my first pull request :smile:
Failing this the core team will fix quickly I expect.

Ok. Thanks

We will update the list and let you know

1 Like

PR made on Github for this issue.

1 Like

@System19 Thanks, merged the PR

1 Like