|
|
@@ -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;
|