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

Marketplace: Accept Payments #1031

Merged
merged 18 commits into from
Jan 19, 2023
Merged

Conversation

zspencer
Copy link
Member

@zspencer zspencer commented Jan 5, 2023

#831

  • Accept Payments via Stripe Checkout
    • Happy Path
      • Prevent change to CartProducts Quantity when Cart is Checked Out
      • Prevent destruction of CartProducts when Cart is Checked Out
      • (Zee's note: Perhaps this is best done at the Policy level, so Sellers/Distributors may update + destroy CartProduct(s) after Checkout but Shoppers cannot?
      • make sure that the current cart is correctly reset after a checkout
    • Sad Path
  • Tidy
    • Request Specs
    • Model Specs
    • Pull Stripe API bits out of Marketplace::CheckoutsController and into Marketplace::Checkout?

Co-authored-by: Ana [email protected]
Co-authored-by: Dalton [email protected]
Co-authored-by: Kelly Hong [email protected]

@zspencer zspencer force-pushed the marketplace/begin-processing-payment branch 2 times, most recently from 18dfe1e to 01cf97e Compare January 8, 2023 20:11
@zspencer zspencer marked this pull request as draft January 8, 2023 20:51
@anaulin anaulin force-pushed the marketplace/begin-processing-payment branch from 67c9852 to 8cd9268 Compare January 12, 2023 03:11
zspencer and others added 7 commits January 15, 2023 13:59
Co-authored-by: Ana <[email protected]>
Co-authored-by: Dalton <[email protected]>
Co-authored-by: Kelly Hong <[email protected]>
For whatever reason, it is truncating the urls; and rather than fucking
around trying to figure out how to make turbo play nicely, just disable;
since we know we will need to redraw the entire DOM anyway, since we are
redirecting to a Stripe Checkout page.

Co-authored-by: Dalton <[email protected]>
Co-authored-by: Naomi Quinones <[email protected]>
It does make me feel like we are using Checkout for too many things, and
maybe we want an Order class which is distinct from a Checkout but we
didn't want to jump through those hoops in this particual session.

Co-authored-by: Dalton <[email protected]>
Co-authored-by: Naomi Quinones <[email protected]>
…t the

current cart.

Co-authored-by: Zee <[email protected]>
Co-authored-by: Kelly <[email protected]>
Co-authored-by: Dalton <[email protected]>
@anaulin anaulin force-pushed the marketplace/begin-processing-payment branch from 8cd9268 to e0b1f81 Compare January 15, 2023 22:01
This PR updates the CheckoutPolicy implementation to satisfy the expectations in the spec. I do not know if this is precisely the behavior we want -- e.g. maybe we want a "marketplace admin" (space owner?) to be able to always see a Checkout -- but we can expand the behavior later.
anaulin and others added 10 commits January 15, 2023 18:46
…1045)

* Handle the "failed to initiate checkout" case and add request specs.

* Add guards for the cases when we don't have a cart.
* Add .erdconfig file and resulting updated ERD

I don't like the connection from Membership to Space, but I'm not sure
how to fix it.

* Simplify ERD creation command

Since have new .erdconfig file, don't need to supply flags.
Co-authored-by: Ana <[email protected]>
Co-authored-by: Dalton <[email protected]>
Co-authored-by: Kelly Hong <[email protected]>
Co-authored-by: Ana <[email protected]>
Co-authored-by: Dalton <[email protected]>
Co-authored-by: Kelly Hong <[email protected]>
Co-authored-by: Ana <[email protected]>
Co-authored-by: Dalton <[email protected]>
Co-authored-by: Kelly Hong <[email protected]>
@zspencer zspencer marked this pull request as ready for review January 19, 2023 02:02
@zspencer zspencer requested review from KellyAH and anaulin and removed request for KellyAH January 19, 2023 02:02
@zspencer zspencer requested a review from sadiejay January 19, 2023 02:02
Copy link
Member

@anaulin anaulin left a comment

Choose a reason for hiding this comment

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

💸

@zspencer zspencer requested review from anaulin and a team January 19, 2023 02:02
@zspencer zspencer mentioned this pull request Jan 19, 2023
15 tasks
@zspencer zspencer merged commit e6bf54c into main Jan 19, 2023
@zspencer zspencer deleted the marketplace/begin-processing-payment branch January 19, 2023 02:28
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