frappe / payments

A payments app for frappe
MIT License
83 stars 221 forks source link

Payment Request URL with Stripe Not Working #105

Open edardev opened 1 month ago

edardev commented 1 month ago

I am facing issues sending a payment request URL for Stripe. The URL is not displaying the payment portal, and the format is incorrect in the generated print PDF.

Steps Taken:

I retrieved the payment URL client-side, but it is not functioning either. Here's how I tried to access it:

cur_frm.doc.payment_url Example output: https://frontend.com/stripe_checkout?amount=10.6&title=COMPANY&description=Payment+Request+for+ACC-SINV-2024-00001&reference_doctype=Payment+Request&reference_docname=ACC-PRQ-2024-00001&payer_email=edward%40email.com&payer_name=demo-customer&order_id=ACC-PRQ-2024-00001&currency=USD

Problems Encountered:

  1. The payment portal does not appear as expected when using the generated payment request - Stripe URL.
  2. The URL is not formatted correctly in the generated PDF for the payment request. image image

Despite the Stripe integration setup, the link does not lead to a proper payment interface. Could you please assist in troubleshooting this issue?

Any help in resolving the URL formatting and PDF generation problems would be greatly appreciated.

Thank you!

blaggacao commented 1 month ago

Can you confirm the commit you're running with, please?

blaggacao commented 1 month ago

Please check with https://github.com/frappe/payments/pull/106 — I think I had the same error once in a private branch. [I'm not working at frappe]

edardev commented 1 month ago

Can you confirm the commit you're running with, please?

I am currently running the latest version, and last night, I created a custom Docker image using the develop branch. The details are as follows:

Commit Hash: 8b57e6d919908203785a82e49f4cc70ab6327896

image

blaggacao commented 1 month ago

Thanks, I think I already identified the issue. Can you test with the PR, please? Waiting for your feedback on that.

edardev commented 1 month ago

Thanks, I think I already identified the issue. Can you test with the PR, please? Waiting for your feedback on that.

Thank you for the pull request! I tested it by pulling your PR, but unfortunately, it's still not working as expected. However, when I installed the Payments app on Frappe Cloud, it works perfectly, and the same goes for the Print Designer app.

image image image

I'm currently preparing a self-hosted production setup for my first client, and they've been waiting for over two weeks. The discrepancies between the cloud and self-hosted environments are confusing, and I’m struggling to pinpoint the issue.

Any insights or advice on resolving these differences would be greatly appreciated!

blaggacao commented 1 month ago

Hm, I'm afraid, I'll likely not be able to help, in this case. :-/ — I wouldn't even know where to start.

edardev commented 1 month ago

Hm, I'm afraid, I'll likely not be able to help, in this case. :-/ — I wouldn't even know where to start.

Thank you for your honesty and taking the time to respond! I appreciate the effort. I'll continue to troubleshoot and explore possible solutions. If anything comes to mind later or if you have any suggestions on where to seek further assistance, feel free to share!