Browse Source

docs(payments-plugin): Options documentation fix (#2006)

Martijn 3 years ago
parent
commit
0e610adf6a
1 changed files with 3 additions and 4 deletions
  1. 3 4
      packages/payments-plugin/src/mollie/mollie.plugin.ts

+ 3 - 4
packages/payments-plugin/src/mollie/mollie.plugin.ts

@@ -17,7 +17,8 @@ import { MollieService } from './mollie.service';
 export interface MolliePluginOptions {
     /**
      * @description
-     * The host of your storefront application, e.g. `'https://my-shop.com'`
+     * The host of your Vendure server, e.g. `'https://my-vendure.io'`.
+     * This is used by Mollie to send webhook events to the Vendure server
      */
     vendureHost: string;
 }
@@ -125,9 +126,7 @@ export interface MolliePluginOptions {
 @VendurePlugin({
     imports: [PluginCommonModule],
     controllers: [MollieController],
-    providers: [
-        MollieService,
-        { provide: PLUGIN_INIT_OPTIONS, useFactory: () => MolliePlugin.options }],
+    providers: [MollieService, { provide: PLUGIN_INIT_OPTIONS, useFactory: () => MolliePlugin.options }],
     configuration: (config: RuntimeVendureConfig) => {
         config.paymentOptions.paymentMethodHandlers.push(molliePaymentHandler);
         return config;