Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
feat: pagarme plugin for vendure
Browse files Browse the repository at this point in the history
  • Loading branch information
jonyw4 committed Jul 16, 2020
1 parent 31cc496 commit 4539d8a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/plugin.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { PluginCommonModule, VendurePlugin } from '@vendure/core';
import { pagarmePaymentMethodHandler } from './payment-method-handler';
import { PagarmePostbackController } from './postback-controller';

@VendurePlugin({
imports: [PluginCommonModule],
controllers: [PagarmePostbackController],
configuration: (config) => {
config.paymentOptions.paymentMethodHandlers.push(
pagarmePaymentMethodHandler
);
return config;
}
})
export class PagarmePlugin {}

0 comments on commit 4539d8a

Please sign in to comment.