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: save stripe api key #1009

Merged
merged 9 commits into from
Jan 5, 2023
Merged

Conversation

KellyAH
Copy link
Contributor

@KellyAH KellyAH commented Dec 22, 2022

See: #831

Added logic for saving stripe api key on Marketplace.
Integrating with stripe via saving the stripe api key was more difficult than we thought. 😞
Screen Shot 2022-12-21 at 7 21 06 PM

Co-authored-by: Zee Spencer [email protected]
Co-authored-by: Ana [email protected]
Co-authored-by: Naomi Quinones [email protected]

TODO:

  • add unit tests

 bug: saved api key fails to display in Marketplace Config page

Co-authored-by: Zee Spencer <[email protected]>
Co-authored-by: Ana <[email protected]>
Co-authored-by: Naomi Quinones <[email protected]>
@KellyAH KellyAH self-assigned this Dec 22, 2022
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.

🗝️

@anaulin anaulin marked this pull request as ready for review December 22, 2022 21:08
@anaulin anaulin marked this pull request as draft December 22, 2022 21:09
@zspencer zspencer marked this pull request as ready for review December 23, 2022 01:16
Copy link
Member

@zspencer zspencer left a comment

Choose a reason for hiding this comment

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

I think we could merge as is; or we could flesh out the policy logic first. Dealers choice, @KellyAH !!!

@@ -5,6 +5,10 @@ class MarketplacePolicy < ApplicationPolicy
def show?
true
end

def update?
true
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this logic should be thought through a bit before merge :D

zspencer and others added 6 commits December 27, 2022 15:57
* Marketplace: MarketplacesController#edit Spec

Just a basic "get the route, confirm it renders a template successfully
for authenticated user and is a 404 when not"

* Marketplace: Unit tests MarketplacePolicy#update?
We had been doing our smoke-testing with authenticated users, not
guests; and then Zee broke everything by not logging in and discovering
that we hadn't actually handled the Guest case well.

This tests the `Marketplace::CheckoutPolicy`,  as well as sprouts some
Factories for creating `:marketplace_checkout`s more conveniently.

co-authored-by: Ana Ulin <[email protected]>
co-authored-by: Dalton <[email protected]>
co-authored-by: Kelly Hong <[email protected]>
- Adds Breadcrumbs
- Places Configure Products underneath the `marketplace/edit` view

co-authored-by: Ana Ulin <[email protected]>
co-authored-by: Dalton <[email protected]>
co-authored-by: Kelly Hong <[email protected]>
@zspencer zspencer merged commit 31c6497 into main Jan 5, 2023
@zspencer zspencer deleted the store-stripe-api-key-in-marketplace branch January 5, 2023 02:29
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