diff --git a/imports/plugins/included/payments-stripe/client/settings/stripe.html b/imports/plugins/included/payments-stripe/client/settings/stripe.html index 55fe6897b0..3d46148e34 100644 --- a/imports/plugins/included/payments-stripe/client/settings/stripe.html +++ b/imports/plugins/included/payments-stripe/client/settings/stripe.html @@ -1,58 +1,8 @@ - {{#unless packageData.settings.api_key}} - - Don't have a Stripe API Secret Key? - - Get it here. - - - {{/unless}} {{#autoForm collection=Collections.Packages schema=StripePackageConfig doc=packageData type="update" id="stripe-update-form"}} - {{>afQuickField name='settings.api_key'}} - {{>afQuickField name='settings.public.publishable_key'}} - Save Changes + Save + Changes {{/autoForm}} - - - - - - - Stripe Checkout - - - - {{#if packageData.settings.api_key}} - API Secret Key: ********** - {{else}} - API Secret Key: Configure Now - {{/if}} - - - - - - - diff --git a/imports/plugins/included/payments-stripe/client/settings/stripe.js b/imports/plugins/included/payments-stripe/client/settings/stripe.js index 96a7f795c1..fca8811034 100644 --- a/imports/plugins/included/payments-stripe/client/settings/stripe.js +++ b/imports/plugins/included/payments-stripe/client/settings/stripe.js @@ -23,16 +23,6 @@ Template.stripeSettings.helpers({ packageData }); -Template.stripe.helpers({ - packageData -}); - -Template.stripe.events({ - "click [data-event-action=showStripeSettings]"() { - Reaction.showActionView(); - } -}); - AutoForm.hooks({ "stripe-update-form": { onSuccess() { diff --git a/imports/plugins/included/payments-stripe/lib/collections/schemas/stripe.js b/imports/plugins/included/payments-stripe/lib/collections/schemas/stripe.js index 8adff37555..09ddb8aec8 100644 --- a/imports/plugins/included/payments-stripe/lib/collections/schemas/stripe.js +++ b/imports/plugins/included/payments-stripe/lib/collections/schemas/stripe.js @@ -53,10 +53,6 @@ export const StripePackageConfig = PackageConfig.clone().extend({ type: Boolean, defaultValue: false }, - "settings.api_key": { - type: String, - label: "API Secret Key" - }, // This field only applies to marketplace style orders where a payment is taken on behalf of another store "settings.applicationFee": { type: Number, @@ -64,25 +60,9 @@ export const StripePackageConfig = PackageConfig.clone().extend({ optional: true, defaultValue: 5 }, - "settings.connectAuth": { - type: StripeConnectAuthorizationCredentials, - label: "Connect Authorization Credentials", - optional: true - }, "settings.public": { type: Object, defaultValue: {} - }, - // Public Settings - "settings.public.client_id": { - type: String, - label: "Public Client ID", - optional: true - }, - "settings.public.publishable_key": { - type: String, - label: "Publishable Key", - optional: true } });