-
Notifications
You must be signed in to change notification settings - Fork 231
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
ERPNext Payment Error #121
Comments
If possible, fix it fast. I tried to modify the code, but things not worked. |
The code in the screenshot doesn't look like the standard Payments app. Also which version of the Payments app are you using. |
Payments: v0.0.1 (develop) I was trying to debug the code, that's why I have add some print statements |
Can you post the full replication steps |
Braintree Settings This is payment gateway acccount Here is payment gateway The, I have added this payment gateway to ecommerce settings This is the checkout page, till here things are going fine, when I will click on pay button then then payment will complete and also its logs will be shown to the braintree transaction but after its completion, when I get redirected to the payment _success page then error occured. Behind the scene, payment request, sales order and other things are created This is the error in payment success page |
I have shared all the steps, can you please try to solve it quickly, or let me know why this error is coming |
Since when did this issue started to occur? |
3 days ago |
#122 should fix it |
Please include it in the original code after testing it at your end. |
Information about bug
i'm using the erpnext v14 manual installation and facing this issue. After the successful payment, when redirecting to the payment success page, I'm facing this error.
After Looking into the code, I knew that in the payment_success.py file, frappe is trying to get the docname and doctype but unable to get this
i'm getting doctype and docname as none because form_dict only contains "redirect_to" field and due to this, error is occuring here
doc = frappe.get_doc(doctype, docname)
In the documentation, the only thing mentioned is to put the keys into the braintree settings to setup payment gateway and the payment is working successfully but not building the payment_success page only due to this error.
Module
accounts, ecommerce
Version
ERPNext: v14.76.0 (version-14)
Frappe Framework: v14.85.1 (version-14)
Installation method
manual install
Relevant log output / Stack trace / Full Error Message.
The text was updated successfully, but these errors were encountered: