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

Show error if Stripe publishable key is not configured #1042

Merged
merged 4 commits into from
Mar 7, 2019

Conversation

OtterleyW
Copy link
Contributor

@OtterleyW OtterleyW commented Mar 6, 2019

Show error in PayoutDetailsForm and in StripePaymentForm if Stripe publishable key is not configured. This way the app will not crash e.g. if someone tries to publish a draft listing and the Stripe key is not configured yet.

localhost_3000_l_test-sauna_5c78ed4e-d56c-46e7-8541-9504cc990650_draft_photos

@@ -552,6 +552,7 @@
"PayoutDetailsForm.lastNameLabel": "Last name",
"PayoutDetailsForm.lastNamePlaceholder": "Doe",
"PayoutDetailsForm.lastNameRequired": "This field is required",
"PayoutDetailsForm.missingStripeKey": "You need to configure the Stripe publishable key to continue.",
Copy link
Contributor

@Gnito Gnito Mar 6, 2019

Choose a reason for hiding this comment

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

Providers see this message, so I think this should be changed to something like:
"Marketplace operator has not configured Stripe publishable key to this marketplace. Unfortunately, you can't publish listings yet."

Copy link
Contributor

@Gnito Gnito left a comment

Choose a reason for hiding this comment

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

Change the message.

@OtterleyW OtterleyW force-pushed the show-error-in-payout-modal-if-no-stripe-key branch 2 times, most recently from c7926f3 to c98f00f Compare March 7, 2019 12:08
@OtterleyW OtterleyW force-pushed the show-error-in-payout-modal-if-no-stripe-key branch from c98f00f to d56ea31 Compare March 7, 2019 12:11
@OtterleyW OtterleyW merged commit 60af89a into master Mar 7, 2019
@OtterleyW OtterleyW deleted the show-error-in-payout-modal-if-no-stripe-key branch March 7, 2019 12:29
@Gnito Gnito mentioned this pull request Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants