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

Update Payment flow on clicking Pay #45171

Open
madmax330 opened this issue Jul 10, 2024 · 46 comments
Open

Update Payment flow on clicking Pay #45171

madmax330 opened this issue Jul 10, 2024 · 46 comments
Assignees
Labels
Reviewing Has a PR in review Weekly KSv2

Comments

@madmax330
Copy link
Contributor

madmax330 commented Jul 10, 2024

Part of the project

Main issue: https://github.com/Expensify/Expensify/issues/382977
Doc section: https://docs.google.com/document/d/1CF5gw-SJx7ckZCgTJNj1IqBnsRuSxD2Bfd_uB5rRGxk/edit#heading=h.u0rlixqcmug6
Project: https://github.com/orgs/Expensify/projects/114

Feature Description

Relevant doc section: https://docs.google.com/document/d/1CF5gw-SJx7ckZCgTJNj1IqBnsRuSxD2Bfd_uB5rRGxk/edit#heading=h.jxlg73mn39np

Manual Test Steps

Create an invoice, as the receiver click on pay and make sure the different dialogs work correctly.

Automated Tests

Issue OwnerCurrent Issue Owner: @rezkiy37
@madmax330
Copy link
Contributor Author

We might want to split this one up into different PRs for each of the different payment methods

@danielrvidal
Copy link
Contributor

@madmax330 any updates on this one? We'll probably have to make some progress to hit SuiteWorld, not sure if it's been tracked somewhere else.

@madmax330
Copy link
Contributor Author

Going to work on it this week, I think it's holding on some backend changes

@melvin-bot melvin-bot bot removed the Overdue label Sep 2, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 3, 2024
@madmax330
Copy link
Contributor Author

Changing to weekly so I can get this done

@melvin-bot melvin-bot bot removed the Overdue label Oct 7, 2024
@madmax330 madmax330 added Weekly KSv2 and removed Monthly KSv2 labels Oct 7, 2024
@rezkiy37
Copy link
Contributor

Hi, I am Michael (Mykhailo) from Callstack, an expert agency and I can work on this issue.

@rezkiy37
Copy link
Contributor

Actively working on the issue.

@madmax330
Copy link
Contributor Author

Not overdue

@melvin-bot melvin-bot bot removed the Overdue label Oct 16, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 24, 2024
@madmax330
Copy link
Contributor Author

Still working on the Auth part

@melvin-bot melvin-bot bot removed the Overdue label Oct 29, 2024
@rezkiy37
Copy link
Contributor

I am OOO till Tuesday and will continue to work on this issue later.

@rezkiy37
Copy link
Contributor

rezkiy37 commented Nov 6, 2024

Waiting for the backend.

1 similar comment
@rezkiy37
Copy link
Contributor

Waiting for the backend.

@cristipaval
Copy link
Contributor

Just had a chat with @madmax330 and we chatted about the error that is thrown from the backend.

@melvin-bot melvin-bot bot added the Overdue label Jan 9, 2025
@cristipaval
Copy link
Contributor

Posting here for me whenever I have time to work again on this:

  • We currently throw here when the payer has no Stripe customer ID
  • We need to check in peek() whether the payer has that ID and create it when they don't, using the Stripe::createCustomer function from Stripe.cpp.

@cristipaval
Copy link
Contributor

Calm down, Melv

@melvin-bot melvin-bot bot removed the Overdue label Jan 9, 2025
@rezkiy37
Copy link
Contributor

rezkiy37 commented Jan 9, 2025

I've synced the PR up and solved eslint errors.

@melvin-bot melvin-bot bot added the Overdue label Jan 20, 2025
@cristipaval
Copy link
Contributor

I'm still swamped with external-commit-related work. If this week was an ideal one, I would be able to work on this in a few days

@melvin-bot melvin-bot bot removed the Overdue label Jan 20, 2025
@melvin-bot melvin-bot bot added the Overdue label Jan 29, 2025
@rezkiy37
Copy link
Contributor

rezkiy37 commented Feb 3, 2025

@cristipaval, any updates? I've synced the PR up.

@cristipaval
Copy link
Contributor

I might work on this sometime these days.

@melvin-bot melvin-bot bot removed the Overdue label Feb 4, 2025
@melvin-bot melvin-bot bot added the Overdue label Feb 13, 2025
@rezkiy37
Copy link
Contributor

rezkiy37 commented Feb 14, 2025

I’m planning a short vacation next week from Monday to Wednesday, from the 17th to the 19th. I am working on the issue later.

@cristipaval
Copy link
Contributor

I have a WIP PR

@melvin-bot melvin-bot bot removed the Overdue label Feb 20, 2025
@rezkiy37
Copy link
Contributor

I’m planning a day off next week on Monday. I am working on the issue later.

@rezkiy37
Copy link
Contributor

I am back. Working on the issue.

@cristipaval
Copy link
Contributor

The Auth PR is ready for review. When it hits production, we can continue the work on the front-end

@cristipaval
Copy link
Contributor

Update

The Auth PR is merged. It should be deployed tomorrow in the afternoon.

@rezkiy37
Copy link
Contributor

rezkiy37 commented Mar 6, 2025

@cristipaval, I just tested it and had a new error - 404 Stripe customerID does not exist. Has the auth PR been deployed? If yes, what's wrong with my requests?

Details

Image

requestID: "91c2b7e0499db32a-SJC"

requestID: "91c2b81f9a78f986-PRG"

Image Image

@cristipaval
Copy link
Contributor

@rezkiy37, we had some issues with the deployment today. The Auth PR hasn't been deployed yet. There will be an automatic comment informing us when it is live.

@cristipaval
Copy link
Contributor

Oh, the automatic comment didn't come, because the PR is from another repo.

The changes are live as of now.

@rezkiy37
Copy link
Contributor

rezkiy37 commented Mar 7, 2025

@cristipaval, I can confirm I've tested the changes. However, I still have errors.

Error 666 - wrong currency

As I understand the currency must be the same as a policy uses. It fails even if I use the correct currency for an invoice.

Image Image

Error 500 - Stripe

I suspect that the backend system cannot recognize my bank accounts as legitimate.

Image

Please test my PR on your side with the correct bank accounts. I will open the PR for review if it works properly for you.

@cristipaval
Copy link
Contributor

@rezkiy37, I forgot to let you know that Stripe payments work with USD currency only. So we'll have to hide the Pay with Expensify option for the reports that have other currency.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Mar 7, 2025
@rezkiy37
Copy link
Contributor

rezkiy37 commented Mar 7, 2025

I've opened #50640 for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewing Has a PR in review Weekly KSv2
Projects
Status: Critical
Development

No branches or pull requests

4 participants