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

[Hot-fix] Retry payment button was not showing up (#72) #74

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

marcelosalloum
Copy link
Collaborator

@marcelosalloum marcelosalloum commented Feb 9, 2024

What

The retry payment button was not showing up after PR #15.

The code was relying on the order of the entries in the status_history array. Status history is metadata, so it's not very reliable and we should rely on the status instead.

How was it tested?

  1. Pointed my FE to the dev instance (https://stellar-disbursement-platform-backend-dev.stellar.org)
  2. Created a payment to my phone number
  3. Registered a wallet using the demo wallet, but without creating the account
  4. The payment failed with op_no_destination
  5. I created the account and retried it
  6. The payment failed with op_no_trust
  7. I created the trustline and retried it
  8. It succeeded 🎉

The payment used for this test is at https://stellar-disbursement-platform-frontend-dev.stellar.org/payments/b27db2ed-dd87-4127-b165-98f98c70144b

### What

The retry payment button was not showing up after #15.

The code was relying on the order of the entries in the status_history array. Status history is metadata, so it's not very reliable and we should rely on the status instead.

### How was it tested?

1. Pointed my FE to the dev instance (https://stellar-disbursement-platform-backend-dev.stellar.org)
2. Created a payment to my phone number
3. Registered a wallet using the demo wallet, but without creating the account
4. The payment failed with op_no_destination
5. I created the account and retried it
6. The payment failed with op_no_trust
7. I created the trustline and retried it
8. It succeeded 🎉

The payment used for this test is at https://stellar-disbursement-platform-frontend-dev.stellar.org/payments/b27db2ed-dd87-4127-b165-98f98c70144b
@marcelosalloum marcelosalloum merged commit d114aa6 into develop Feb 9, 2024
14 checks passed
@marcelosalloum marcelosalloum deleted the hot-fix/retry-payment-develop branch February 9, 2024 19:48
@stellar-jenkins
Copy link

stellar-disbursement-platform-frontend-preview is available here:
http://sdp-frontend-pr74.previews.kube001.services.stellar-ops.com/

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

Successfully merging this pull request may close these issues.

3 participants