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

add error message for inactive shops trying to connect to Stripe #3076

Merged
merged 1 commit into from
Oct 10, 2017

Conversation

kieckhafer
Copy link
Member

We currently do not show any error for new or inactive shops, when a user tries to click the "Start Accepting Payment" button on the Stripe connect settings. A user would click the button and nothing would happen.

This update adds an error message to direct the user to contact the marketplace admin.

I've also moved a few translations into this package, as they were in a different package and didn't seem to be working.

@@ -29,6 +29,10 @@ Template.stripeConnectSignupButton.events({

const shop = Shops.findOne({ _id: shopId });

if (!shop || !shop.workflow || shop.workflow.status !== "active") {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is probably a good intermediate fix. Long run we should be building up the shops workflow and aligning UI with that so that buttons that are inactive are not even available on the UI.

Copy link
Contributor

@spencern spencern left a comment

Choose a reason for hiding this comment

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

Lgtm

@spencern spencern merged commit 78bde91 into release-1.5.0 Oct 10, 2017
@spencern spencern deleted the ek-errorMessageForStripe branch October 16, 2017 23:14
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.

2 participants