diff --git a/app/components/forms/wizard/basic-details-step.js b/app/components/forms/wizard/basic-details-step.js index e25ba000bdd..e8b400a52e3 100644 --- a/app/components/forms/wizard/basic-details-step.js +++ b/app/components/forms/wizard/basic-details-step.js @@ -11,6 +11,7 @@ import FormMixin from 'open-event-frontend/mixins/form'; import { inject as service } from '@ember/service'; import EventWizardMixin from 'open-event-frontend/mixins/event-wizard'; import { protocolLessValidUrlPattern } from 'open-event-frontend/utils/validators'; +import ENV from 'open-event-frontend/config/environment'; export default Component.extend(FormMixin, EventWizardMixin, { @@ -366,7 +367,7 @@ export default Component.extend(FormMixin, EventWizardMixin, { .then(authorization => { this.set('data.event.stripeAuthorization', this.store.createRecord('stripe-authorization', { stripeAuthCode : authorization.authorizationCode, - stripePublishableKey : this.settings.stripePublishableKey + stripePublishableKey : ENV.environment === 'development' || ENV.environment === 'test' ? this.settings.stripeTestPublishableKey : this.settings.stripePublishableKey })); }) .catch(error => { diff --git a/app/templates/public/index.hbs b/app/templates/public/index.hbs index f019419dd33..d51ccb019ec 100644 --- a/app/templates/public/index.hbs +++ b/app/templates/public/index.hbs @@ -11,7 +11,7 @@