8000 [MBL-1303] Add adding payment method to the checkout screen by mtgriego · Pull Request #1995 · kickstarter/android-oss · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[MBL-1303] Add adding payment method to the checkout screen #1995

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

Merged
merged 3 commits into from
Apr 1, 2024

Conversation

mtgriego
Copy link
Contributor
@mtgriego mtgriego commented Mar 28, 2024

📲 What

Allows the user to add a payment method and use it in the late pledge checkout

🤔 Why

Users may need to add new methods if their current one isnt accepted, etc

🛠 How

Borrowing stripe interactions from pledgefragment

👀 See

Screenshot_20240328-151847

screen-20240328-154043.mp4

📋 QA

Go to any late pledge project and get to the checkout screen, from there, add a new payment method and attempt to use to check out. Watch logs to see if all goes well. If not, you should be presented with an error

Story 📖

MBL-1303

@mtgriego mtgriego added the Post Campaign Functionality Tied to Epic https://kickstarter.atlassian.net/browse/MBL-1108 label Mar 28, 2024
@mtgriego mtgriego self-assigned this Mar 28, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 59 lines in your changes are missing coverage. Please review.

Project coverage is 67.67%. Comparing base (5d7d18e) to head (83ad080).

Files Patch % Lines
...wmodels/projectpage/LatePledgeCheckoutViewModel.kt 0.00% 58 Missing ⚠️
...i/activities/compose/projectpage/CheckoutScreen.kt 0.00% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1995      +/-   ##
============================================
- Coverage     67.82%   67.67%   -0.15%     
  Complexity     2025     2025              
============================================
  Files           360      360              
  Lines         22010    22060      +50     
  Branches       3086     3091       +5     
============================================
+ Hits          14929    14930       +1     
- Misses         5423     5473      +50     
+ Partials       1658     1657       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mtgriego mtgriego marked this pull request as ready for review March 28, 2024 23:34
@@ -1085,9 +1123,96 @@ class ProjectPageActivity :
}
}

// Update the UI with the returned PaymentOption
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For everything related with the PaymentSheet, we should try instead of copy and paste the code from PledgeFragment, to create some kind of Extension function or utils for Stripe's integration in a way the is re-usable.

@mtgriego mtgriego merged commit 06b9523 into master Apr 1, 2024
@mtgriego mtgriego deleted the mgriego/latepledgeaddpayments branch April 1, 2024 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Post Campaign Functionality Tied to Epic https://kickstarter.atlassian.net/browse/MBL-1108
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0