Skip to content

Commit

Permalink
fix: export some helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Nov 11, 2023
1 parent c0f9fe0 commit 24bab6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/payments-plugin/src/mollie/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from './mollie.plugin';
export { getLocale, toAmount } from './mollie.helpers';
export * from './';
8 changes: 6 additions & 2 deletions packages/payments-plugin/src/mollie/mollie.plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,19 @@ export interface MolliePluginOptions {
* @example
* ```ts
* import { VendureConfig } from '\@vendure/core';
* import { MolliePlugin } from '\@vendure/payments-plugin/package/mollie';
* import { MolliePlugin, getLocale } from '\@vendure/payments-plugin/package/mollie';
*
* export const config: VendureConfig = {
* // ...
* plugins: [
* MolliePlugin.init({
* enabledPaymentMethodsParams: (injector, ctx, order) => {
* const locale = order?.billingAddress?.countryCode
* ? getLocale(order.billingAddress.countryCode, ctx.languageCode)
* : undefined;
*
* return {
* locale: ctx.languageCode,
* locale,
* billingCountry: order?.billingAddress?.countryCode,
* },
* }
Expand Down

0 comments on commit 24bab6e

Please sign in to comment.